diff options
| author | Gaurav Panchal <gan@odoo.com> | 2014-12-31 14:14:26 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-12-31 14:42:57 +0100 |
| commit | f15d84094db3bc7115eb68ebde946293d8a14600 (patch) | |
| tree | 4fecaa1d390271f0db4d5d9c6f589ad267ac25e0 /addons | |
| parent | e5a2ddc22f592aab87fe237598dabec42ae9c9bc (diff) | |
[IMP] account_voucher: reference field label + restrict payment options to accountants
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account_voucher/account_voucher.py | 2 | ||||
| -rw-r--r-- | addons/account_voucher/voucher_payment_receipt_view.xml | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index e56f4bec67c..31406e6a128 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -328,7 +328,7 @@ class account_voucher(osv.osv): \n* The \'Cancelled\' status is used when user cancel voucher.'), 'amount': fields.float('Total', digits_compute=dp.get_precision('Account'), required=True, readonly=True, states={'draft':[('readonly',False)]}), 'tax_amount':fields.float('Tax Amount', digits_compute=dp.get_precision('Account'), readonly=True), - 'reference': fields.char('Ref #', readonly=True, states={'draft':[('readonly',False)]}, + 'reference': fields.char('Reference', readonly=True, states={'draft':[('readonly',False)]}, help="Transaction reference number.", copy=False), 'number': fields.char('Number', readonly=True, copy=False), 'move_id':fields.many2one('account.move', 'Account Entry', copy=False), diff --git a/addons/account_voucher/voucher_payment_receipt_view.xml b/addons/account_voucher/voucher_payment_receipt_view.xml index 3c5fa4b8bc4..8f60566f10f 100644 --- a/addons/account_voucher/voucher_payment_receipt_view.xml +++ b/addons/account_voucher/voucher_payment_receipt_view.xml @@ -211,8 +211,8 @@ <group col="2"> <separator string="Payment Options" colspan="2"/> <field name="writeoff_amount" widget='monetary' options='{"currency_field": "currency_id"}'/> - <label for="payment_option" string="Difference of payment amount" class="oe_inline"/> - <field name="payment_option" widget="radio" required="1" nolabel="1"/> + <label for="payment_option" string="Difference of payment amount" class="oe_inline" groups="account.group_account_user"/> + <field name="payment_option" widget="radio" required="1" nolabel="1" groups="account.group_account_user"/> <field name="writeoff_acc_id" attrs="{'invisible':[('payment_option','!=','with_writeoff')], 'required':[('payment_option','=','with_writeoff')]}" domain="[('type','=','other')]"/> @@ -334,7 +334,7 @@ <group> <group> <field name="writeoff_amount" widget="monetary" attrs="{'invisible':[('writeoff_amount','=',0)]}" options="{'currency_field': 'currency_id'}"/> - <field name="payment_option" required="1" attrs="{'invisible':[('writeoff_amount','=',0)]}"/> + <field name="payment_option" required="1" attrs="{'invisible':[('writeoff_amount','=',0)]}" groups="account.group_account_user"/> <field name="writeoff_acc_id" attrs="{'invisible':['|', ('payment_option','!=','with_writeoff'), ('writeoff_amount','=',0)], 'required':[('payment_option','=','with_writeoff'), ('writeoff_amount','!=',0)]}" domain="[('type','=','other')]"/> @@ -497,7 +497,7 @@ </group> <group> <field name="writeoff_amount" widget="monetary" options="{'currency_field': 'currency_id'}"/> - <field name="payment_option" required="1" widget="radio" attrs="{'invisible':[('writeoff_amount','=',0)]}"/> + <field name="payment_option" required="1" widget="radio" attrs="{'invisible':[('writeoff_amount','=',0)]}" groups="account.group_account_user"/> <field name="writeoff_acc_id" attrs="{'invisible':['|', ('payment_option','!=','with_writeoff'), ('writeoff_amount','=',0)], 'required':[('payment_option','=','with_writeoff')]}" domain="[('type','=','other')]"/> |
