We update the unit price of the stock move when it is done and when a linked invoice is posted. This allow to keep an accurate cost price computation when price varies between the order and the invoice. issue7280 review311431002
17 lines
448 B
Python
17 lines
448 B
Python
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
# this repository contains the full copyright notices and license terms.
|
|
|
|
from trytond.pool import Pool
|
|
from . import account
|
|
from . import stock
|
|
|
|
|
|
def register():
|
|
Pool.register(
|
|
account.Invoice,
|
|
account.InvoiceLineStockMove,
|
|
account.InvoiceLine,
|
|
stock.Move,
|
|
stock.ShipmentOut,
|
|
module='account_invoice_stock', type_='model')
|