[IMP]Improved code for purchase order when order is in done state then fiscal_position should be read-only

bzr revid: pan@tinyerp.com-20121129131134-b32d7ja4qzkbiabm
This commit is contained in:
Anand Patel (OpenERP) 2012-11-29 18:41:34 +05:30
parent 74657199b0
commit 11aff53d50
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@
<group>
<field name="invoice_method"/>
<field name="invoiced"/>
<field name="fiscal_position"/>
<field name="fiscal_position" attrs="{'readonly': [('state','=','done')]}"/>
<!-- We do not need these fields anymore, the information is in open chatter -->
<field name="validator" groups="base.group_no_one"/>
<field name="date_approve" groups="base.group_no_one"/>