add field delivery in consumer

This commit is contained in:
wilson gomez 2022-02-03 07:45:34 -05:00
parent 52b03307f0
commit 239617d597
3 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,7 @@ class PartyConsumer(ModelSQL, ModelView):
address = fields.Char('Address', required=True)
id_number = fields.Char('Id Number')
birthday = fields.Date('Birthday')
delivery = fields.Char('Id Number')
notes = fields.Text('Notes')
def get_rec_name(self, name=None):

View File

@ -142,6 +142,7 @@ class Sale(metaclass=PoolMeta):
'phone': consumer.phone,
'address': consumer.address or '',
'notes': consumer.notes,
'delivery': consumer.delivery
}
@classmethod

View File

@ -10,6 +10,8 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
<field name="address"/>
<label name="id_number"/>
<field name="id_number"/>
<label name="delivery"/>
<field name="delivery"/>
<label name="birthday"/>
<field name="birthday"/>
<separator name="notes" colspan="4"/>