bzr revid: fp@tinyerp.com-20090122120401-wv8bb7gdmsyec3rc
This commit is contained in:
Fabien Pinckaers
2009-01-22 13:04:01 +01:00
parent 5e692eca91
commit ba17deda18
3 changed files with 4 additions and 6 deletions
@@ -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
+2 -5
View File
@@ -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>
+1 -1
View File
@@ -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"])]