[MERGE/FIX]:

- If you manually create a session by clicking on "All Sessions" then "Create" and enter a pos, the pos field will dissapear..
 - Should not be possible to select view accounts for profit/losss acount on cash registers tab of payment method

bzr revid: apa@tinyerp.com-20121010104043-gcj3ytsjhua7k8p7
This commit is contained in:
Amit Patel 2012-10-10 16:10:43 +05:30
commit 57011e3ef5
2 changed files with 3 additions and 3 deletions

View File

@ -509,8 +509,8 @@
<page string="Cash Registers">
<group>
<group string="Accounts">
<field name="profit_account_id"/>
<field name="loss_account_id"/>
<field name="profit_account_id" domain="[('type','!=','view')]"/>
<field name="loss_account_id" domain="[('type','!=','view')]"/>
<field name="internal_account_id"/>
</group>
<group string="Miscellaneous">

View File

@ -893,7 +893,7 @@
<field name="cash_control" invisible="1" />
<group>
<field name="user_id"/>
<field name="config_id" attrs="{'invisible' : [('config_id', '!=', False)]}"/>
<field name="config_id"/>
</group>
<group>
<field name="start_at" attrs="{'invisible' : [('state', '=', 'opening_control')]}"/>