Files
tryton/__init__.py
T
Cédric Krier 6c1626fb34 Update unit price of stock moves based on posted invoice lines
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
2020-06-24 23:10:46 +02:00

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')