[MIG] migrate add-on account_quotation_sale_order_invoice_title
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import sale_make_invoice_advance
|
@@ -0,0 +1,14 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
class SaleAdvancePaymentInv(models.TransientModel):
|
||||
_inherit = "sale.advance.payment.inv"
|
||||
|
||||
def _prepare_invoice_values(self, order, name, amount, so_line):
|
||||
res = super(SaleAdvancePaymentInv, self)._prepare_invoice_values(
|
||||
order, name, amount, so_line
|
||||
)
|
||||
res["move_title"] = order.so_title
|
||||
return res
|
Reference in New Issue
Block a user