Commits

Andres Vargas committed 221fb44

adding inherit on party for regime

Comments (0)

Files changed (4)

 from .configuration import *
 from .invoice import *
+from .party import *
     ],
     'xml': [
         'invoice.xml',
+        'party.xml',
         'configuration.xml',
     ],
     'translation': [
+from trytond.model import ModelSQL, ModelView, fields
+
+
+class Party(ModelSQL, ModelView):
+    _name = 'party.party'
+
+    regime = fields.Char("Regime")
+
+
+Party()
+<?xml version="1.0"?>
+<tryton>
+    <data>
+        <record id="id_party_regimen" model="ir.ui.view">
+            <field name="model">party.party</field>
+            <field name="inherit" ref="party.party_view_form"/>
+            <field name="arch" type="xml">
+                <![CDATA[
+                <data>
+                    <xpath expr="/form/field[@name=&quot;code&quot;]" position="after">
+                        <label name="regime"/>
+                        <field name="regime"/>
+                    </xpath>
+                </data>
+                ]]>    
+            </field>
+        </record>
+    
+    </data>
+</tryton>