diff options
| author | Jay (Open ERP) <jvo@tinyerp.com> | 2010-05-19 16:29:45 +0530 |
|---|---|---|
| committer | Jay (Open ERP) <jvo@tinyerp.com> | 2010-05-19 16:29:45 +0530 |
| commit | 101bebe2a6fa4015c59436cfdfe19ecac0e4e44d (patch) | |
| tree | 9543c674365fd452a3ec6128cfd09752dcb48632 /addons | |
| parent | 36e487fef03dd0989f4ddb8198476f57e9caa8b9 (diff) | |
[FIX] Fixes for invoice refund wizard and account_folowup act_window domain
bzr revid: jvo@tinyerp.com-20100519105945-xhprbuclbsogvzp2
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account/account_invoice_view.xml | 1 | ||||
| -rw-r--r-- | addons/account/account_view.xml | 4 | ||||
| -rw-r--r-- | addons/account/wizard/account_invoice_refund.py | 8 | ||||
| -rw-r--r-- | addons/account_followup/followup_view.xml | 2 |
4 files changed, 10 insertions, 5 deletions
diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 16e3cc656cd..3bb6a3b8cbb 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -479,6 +479,7 @@ <act_window domain="[('account_analytic_id', '=', active_id)]" id="act_account_analytic_account_2_account_invoice_line" name="Invoice lines" res_model="account.invoice.line" src_model="account.analytic.account"/> + <act_window domain="[('partner_id', '=', partner_id), ('account_id.type', 'in', ['receivable', 'payable']), ('reconcile_id','=',False)]" id="act_account_invoice_account_move_unreconciled" name="Unreconciled Receivables & Payables" res_model="account.move.line" src_model="account.invoice"/> <!-- Partners inherited form --> <record id="view_invoice_partner_info_form" model="ir.ui.view"> diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index a94ae9428ab..1989eb9a612 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -640,9 +640,9 @@ </page> <page groups="base.group_extended" string="Special Computation"> <separator colspan="4" string="Compute Code (if type=code)"/> - <field colspan="4" name="python_compute" nolabel="1" attrs="{'readonly':[('type','!=','code')]}"/> + <field colspan="4" name="python_compute" nolabel="1" attrs="{'readonly':[('type','!=','code')],'required':[('type','=','code')]}"/> <separator colspan="4" string="Applicable Code (if type=code)"/> - <field colspan="4" name="python_applicable" nolabel="1" attrs="{'readonly':[('applicable_type','=','true')]}"/> + <field colspan="4" name="python_applicable" nolabel="1" attrs="{'readonly':[('applicable_type','=','true')], 'required':[('applicable_type','=','code')]}"/> </page> </notebook> </form> diff --git a/addons/account/wizard/account_invoice_refund.py b/addons/account/wizard/account_invoice_refund.py index b11d6d661bb..1634d66c923 100644 --- a/addons/account/wizard/account_invoice_refund.py +++ b/addons/account/wizard/account_invoice_refund.py @@ -29,10 +29,14 @@ class account_invoice_refund(osv.osv_memory): _name = "account.invoice.refund" _description = "Invoice Refund" _columns = { - 'date': fields.date('Operation date', required=False), + 'date': fields.date('Operation date', required=False, help='This date will be used as the invoice date for Refund Invoice and Period will be chosen accordingly!'), 'period': fields.many2one('account.period', 'Force period', required=False), 'description': fields.char('Description', size=150, required=True), - } + } + + _defaults = { + 'date': lambda *a: time.strftime('%Y-%m-%d'), + } def compute_refund(self, cr, uid, ids, mode, context=None): """ diff --git a/addons/account_followup/followup_view.xml b/addons/account_followup/followup_view.xml index 057e761cbca..ae31f7253a2 100644 --- a/addons/account_followup/followup_view.xml +++ b/addons/account_followup/followup_view.xml @@ -124,7 +124,7 @@ </field> </record> - <act_window domain="[('partner_id', '=', active_id),('reconcile_id','=',False),('account_id.reconcile', '=', True),('account_id.type', 'in', ['receivable', 'payable'])]]" id="account.act_account_partner_account_move_unreconciled" name="Receivables & Payables" res_model="account.move.line" view="account_move_line_partner_tree"/> + <act_window domain="[('partner_id', '=', active_id),('reconcile_id','=',False),('account_id.reconcile', '=', True),('account_id.type', 'in', ['receivable', 'payable'])]" id="account.act_account_partner_account_move_unreconciled" name="Receivables & Payables" res_model="account.move.line" view="account_move_line_partner_tree"/> <act_window domain="[('reconcile_id', '=', False),('account_id.type','=','receivable')]" id="act_account_partner_account_move_all" name="All receivable entries" res_model="account.move.line" src_model="" view="account_move_line_partner_tree"/> |
