[ADD] representative document acts in contract
This commit is contained in:
parent
782b6f20cd
commit
331963f1a9
@ -20,6 +20,9 @@ class ResPartner(models.Model):
|
||||
representative_id = fields.Many2one(
|
||||
"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")
|
||||
|
||||
@api.depends("street", "street2", "city", "state_id", "zip", "country_id")
|
||||
|
@ -43,6 +43,8 @@
|
||||
|
||||
<xpath expr="//field[@name='category_id']" position="after">
|
||||
<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"/>
|
||||
</xpath>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user