|
|
@ -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" |
|
|
|
|
|
|
|