Browse Source

Ajout purchase

12.0
Juliana 5 years ago
parent
commit
912b4e08c2
  1. 11
      models/sale_order.py

11
models/sale_order.py

@ -4,6 +4,17 @@
from odoo import models, fields, api
class AccountInvoice(models.Model):
_inherit = "account.invoice"
@api.model
def create(self, vals):
invoice = super(AccountInvoice, self).create(vals)
print("---- invoice -----", str(invoice))
print("---- invoice line -----", str(invoice.invoice_line_ids))
return invoice
class SaleOrder(models.Model):
_inherit = "sale.order"

Loading…
Cancel
Save