mirror of
https://github.com/NaN-tic/trytond-account_invoice_posted2draft.git
synced 2023-12-14 02:22:57 +01:00
* Change the way that the invoices are setted to draft. With the possibilty to enter a new law that not allow to remove any account move, the invoice is setted to draft creating a compesantion move and associateting it to the invoice throwe the additiona_move field. Task: #047268 * Fix some bugs and improve code reducing lines. Task: #047268 * Remove commented line not needed. Tasks: #047268 * Remove Warning definition not used. Tasks: #047268 * Fix some text. Task: 047268 --------- Co-authored-by: Bernat Brunet <bernat@nan-tic.com>
25 lines
746 B
Python
25 lines
746 B
Python
# This file is part account_invoice_posted2draft module for 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 invoice
|
|
from . import commission
|
|
from . import payment
|
|
from . import move
|
|
|
|
|
|
def register():
|
|
Pool.register(
|
|
invoice.Invoice,
|
|
move.Move,
|
|
move.Line,
|
|
module='account_invoice_posted2draft', type_='model')
|
|
Pool.register(
|
|
payment.Invoice,
|
|
depends=['account_payment'],
|
|
module='account_invoice_posted2draft', type_='model')
|
|
Pool.register(
|
|
commission.Invoice,
|
|
depends=['commission'],
|
|
module='account_invoice_posted2draft', type_='model')
|