purchase_usability: don't write ref on account.move, because ref is for the supplier invoice number
This commit is contained in:
@@ -68,6 +68,13 @@ class PurchaseOrder(models.Model):
|
|||||||
# ]
|
# ]
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
def _prepare_invoice(self):
|
||||||
|
# Don't write self.partner_ref on 'ref' of invoice... ref is for the
|
||||||
|
# supplier invoice number !
|
||||||
|
vals = super()._prepare_invoice()
|
||||||
|
vals["ref"] = ''
|
||||||
|
return vals
|
||||||
|
|
||||||
|
|
||||||
class PurchaseOrderLine(models.Model):
|
class PurchaseOrderLine(models.Model):
|
||||||
_inherit = 'purchase.order.line'
|
_inherit = 'purchase.order.line'
|
||||||
|
|||||||
Reference in New Issue
Block a user