add field delivery in consumer
This commit is contained in:
parent
52b03307f0
commit
239617d597
|
@ -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):
|
||||
|
|
1
sale.py
1
sale.py
|
@ -142,6 +142,7 @@ class Sale(metaclass=PoolMeta):
|
|||
'phone': consumer.phone,
|
||||
'address': consumer.address or '',
|
||||
'notes': consumer.notes,
|
||||
'delivery': consumer.delivery
|
||||
}
|
||||
|
||||
@classmethod
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Loading…
Reference in New Issue