[IMP] POS: made currency_id field invisible

bzr revid: cha@tinyerp.com-20130318090747-4413l0il1pk7slww
This commit is contained in:
Ajay Chauhan (OpenERP) 2013-03-18 14:37:47 +05:30
parent d3b14e953a
commit 3c9a40ff84
2 changed files with 3 additions and 3 deletions

View File

@ -205,6 +205,7 @@ class pos_session(osv.osv):
readonly=True,
states={'opening_control' : [('readonly', False)]}
),
'currency_id' : fields.related('config_id', 'currency_id', type="many2one", relation='res.currency', string="Currnecy"),
'start_at' : fields.datetime('Opening Date', readonly=True),
'stop_at' : fields.datetime('Closing Date', readonly=True),
@ -212,7 +213,6 @@ class pos_session(osv.osv):
required=True, readonly=True,
select=1),
'currency_id' : fields.related('config_id', 'currency_id', type="many2one", relation='res.currency', string="Currnecy"),
'cash_control' : fields.function(_compute_cash_all,
multi='cash',
type='boolean', string='Has Cash Control'),

View File

@ -772,7 +772,7 @@
<group>
<field name="name"/>
<field name="shop_id" widget="selection" groups="stock.group_locations" />
<field name="currency_id"/>
<field name="currency_id" invisible="1"/>
<field name="journal_id" widget="selection" />
<field name="sequence_id" readonly="1" groups="base.group_no_one" />
<field name="group_by" groups="account.group_account_user" />
@ -895,7 +895,7 @@
<field name="cash_control" invisible="1" />
<group>
<field name="user_id"/>
<field name="currency_id"/>
<field name="currency_id" invisible="1"/>
<field name="config_id"/>
</group>
<group>