From 21bb54bf2c13c6d4af26284176af67508719e65d Mon Sep 17 00:00:00 2001 From: Bernat Brunet Date: Sun, 14 May 2023 11:43:10 +0200 Subject: [PATCH] Remove duplciated intercompany_user field created here in this modules and in the comapny_user modules that it's a dependency. --- __init__.py | 1 - invoice.py | 9 --------- 2 files changed, 10 deletions(-) diff --git a/__init__.py b/__init__.py index 260fbb2..873140a 100644 --- a/__init__.py +++ b/__init__.py @@ -8,5 +8,4 @@ def register(): Pool.register( invoice.Invoice, invoice.InvoiceLine, - invoice.Company, module='account_invoice_intercompany', type_='model') diff --git a/invoice.py b/invoice.py index cdb4966..7c5c2a2 100644 --- a/invoice.py +++ b/invoice.py @@ -6,15 +6,6 @@ from trytond.pool import Pool, PoolMeta from trytond.pyson import Equal, Eval, If, Bool from trytond.transaction import Transaction -__all__ = ['Invoice', 'InvoiceLine', 'Company'] - - -class Company(metaclass=PoolMeta): - __name__ = 'company.company' - intercompany_user = fields.Many2One('res.user', 'Company User', - help='User with company rules when create a intercompany sale ' - 'from purchases.') - class Invoice(metaclass=PoolMeta): __name__ = 'account.invoice'