mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] onchange folio partner_invoice_id
This commit is contained in:
@@ -475,14 +475,6 @@ class HotelFolio(models.Model):
|
|||||||
)}
|
)}
|
||||||
self.update(values)
|
self.update(values)
|
||||||
|
|
||||||
@api.onchange('partner_invoice_id')
|
|
||||||
def onchange_partner_invoice_id(self):
|
|
||||||
if self.partner_invoice_id and not self.partner_invoice_id.parent_id and \
|
|
||||||
self.partner_invoice_id != self.partner_id:
|
|
||||||
self.update({
|
|
||||||
'partner_invoice_parent_id': self.partner_id.id,
|
|
||||||
'partner_invoice_type': 'invoice'})
|
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
def calcule_reservation_type(self, is_staff, current_type):
|
def calcule_reservation_type(self, is_staff, current_type):
|
||||||
if current_type == 'out':
|
if current_type == 'out':
|
||||||
|
|||||||
Reference in New Issue
Block a user