[ADD] representative document acts in contract

This commit is contained in:
Stepan Savelyev 2019-12-27 10:58:47 +05:00
parent 782b6f20cd
commit 331963f1a9
2 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,9 @@ class ResPartner(models.Model):
representative_id = fields.Many2one( representative_id = fields.Many2one(
"res.partner", string="Representative", help="Person, who represents company" "res.partner", string="Representative", help="Person, who represents company"
) )
representative_document = fields.Char(
string="Representative acts on the basis of", help="Parent Case",
)
signature = fields.Binary(string="Client signature") signature = fields.Binary(string="Client signature")
@api.depends("street", "street2", "city", "state_id", "zip", "country_id") @api.depends("street", "street2", "city", "state_id", "zip", "country_id")

View File

@ -43,6 +43,8 @@
<xpath expr="//field[@name='category_id']" position="after"> <xpath expr="//field[@name='category_id']" position="after">
<field name="representative_id" domain="[('company_type', '=', 'person')]" attrs="{'invisible': [('company_type', '!=', 'company')]}"/> <field name="representative_id" domain="[('company_type', '=', 'person')]" attrs="{'invisible': [('company_type', '!=', 'company')]}"/>
<field name="representative_document" domain="[('company_type', '=', 'person')]" attrs="{'invisible': [('company_type', '!=', 'company')]}"/>
<field name="signature" widget="image"/> <field name="signature" widget="image"/>
</xpath> </xpath>