Remove not needed PurchaseInvoiceLine model
issue6047 review34461002
This commit is contained in:
1 parent
bd1f46184a
commit
3bbfed485a
2 files changed
+1
-12
No files matched your search
@@ -9,7 +9,6 @@ from .invoice import *
|
||||
def register():
|
||||
Pool.register(
|
||||
Purchase,
|
||||
PurchaseInvoiceLine,
|
||||
PurchaseIgnoredInvoiceLine,
|
||||
InvoiceLine,
|
||||
module='purchase_invoice_line_standalone', type_='model')
|
||||
|
||||
+1
-11
@@ -7,7 +7,7 @@ from trytond.model import ModelSQL, fields
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
|
||||
__all__ = ['Purchase', 'PurchaseInvoiceLine', 'PurchaseIgnoredInvoiceLine',
|
||||
__all__ = ['Purchase', 'PurchaseIgnoredInvoiceLine',
|
||||
'HandleInvoiceException']
|
||||
|
||||
|
||||
@@ -91,16 +91,6 @@ class Purchase:
|
||||
return super(Purchase, cls).copy(purchases, default=default)
|
||||
|
||||
|
||||
class PurchaseInvoiceLine(ModelSQL):
|
||||
'Purchase - Invoice Line'
|
||||
__name__ = 'purchase.purchase-account.invoice.line'
|
||||
_table = 'purchase_invoice_line_rel'
|
||||
purchase = fields.Many2One('purchase.purchase', 'Purchase',
|
||||
ondelete='CASCADE', select=True, required=True)
|
||||
line = fields.Many2One('account.invoice.line', 'Invoice Line',
|
||||
ondelete='RESTRICT', select=True, required=True)
|
||||
|
||||
|
||||
class PurchaseIgnoredInvoiceLine(ModelSQL):
|
||||
'Purchase - Ignored Invoice Line'
|
||||
__name__ = 'purchase.purchase-ignored-account.invoice.line'
|
||||
|
||||
Reference in new issue
Block a user