@@ -69,6 +69,7 @@ def _record_objects(self, cr, uid, data, context):
|
||||
user=(pool.get('res.users').browse(cr,uid,uid)).login
|
||||
mod = pool.get('ir.module.record')
|
||||
mod_obj = pool.get('ir.model')
|
||||
mod.recording_data = []
|
||||
|
||||
for id in data['form']['objects'][0][2]:
|
||||
obj_name=(mod_obj.browse(cr,uid,id)).model
|
||||
|
||||
@@ -8,11 +8,8 @@
|
||||
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="property_account_position" position="after">
|
||||
<label string="VAT: " align="1.0"/>
|
||||
<group colspan="1" col="2">
|
||||
<field name="vat" nolabel="1" on_change="vat_change(vat)" select="2"/>
|
||||
<field name="vat_subjected" nolabel="1"/>
|
||||
</group>
|
||||
<field name="vat" on_change="vat_change(vat)" select="2"/>
|
||||
<field name="vat_subjected"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
@@ -58,7 +58,7 @@ class res_partner(osv.osv):
|
||||
return {'value': {'vat_subjected': bool(value)}}
|
||||
|
||||
_columns = {
|
||||
'vat_subjected': fields.boolean('Subjected', help="Check this box if the partner is subjected to the VAT. It will be used for the VAT legal statement.")
|
||||
'vat_subjected': fields.boolean('VAT Legal Statement', help="Check this box if the partner is subjected to the VAT. It will be used for the VAT legal statement.")
|
||||
}
|
||||
_constraints = [(check_vat, "The VAT doesn't seem to be correct.", ["vat"])]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user