Do not add history to unnecessary model

d38610e26ede added history to all related models but it is not necessary as
only the One2Many and Many2Many are needed.
If the target of a Many2One or a Reference has been deleted meanwhile then the
record may not be readable at that date.

Closes #13768
This commit is contained in:
Cédric Krier committed 2024-12-20 11:22:47 +01:00
1 parent 7b75df7e4c
commit afcba82077
6 files changed
+1 -62

No files matched your search

+1 -11
View File
@@ -3,9 +3,7 @@
from trytond.pool import Pool
from . import (
account, company, configuration, opportunity, opportunity_reporting, party,
product, sale)
from . import configuration, opportunity, opportunity_reporting, party, sale
def register():
@@ -22,14 +20,6 @@ def register():
configuration.Configuration,
configuration.ConfigurationSequence,
sale.Sale,
party.Party,
party.Address,
account.PaymentTerm,
account.PaymentTermLine,
product.Template,
product.Product,
company.Company,
company.Employee,
module='sale_opportunity', type_='model')
Pool.register(
party.Replace,
-13
View File
@@ -1,13 +0,0 @@
# 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 PoolMeta
class PaymentTerm(metaclass=PoolMeta):
__name__ = 'account.invoice.payment_term'
_history = True
class PaymentTermLine(metaclass=PoolMeta):
__name__ = 'account.invoice.payment_term.line'
_history = True
-13
View File
@@ -1,13 +0,0 @@
# 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 PoolMeta
class Company(metaclass=PoolMeta):
__name__ = 'company.company'
_history = True
class Employee(metaclass=PoolMeta):
__name__ = 'company.employee'
_history = True
-10
View File
@@ -3,16 +3,6 @@
from trytond.pool import PoolMeta
class Party(metaclass=PoolMeta):
__name__ = 'party.party'
_history = True
class Address(metaclass=PoolMeta):
__name__ = 'party.address'
_history = True
class Replace(metaclass=PoolMeta):
__name__ = 'party.replace'
-13
View File
@@ -1,13 +0,0 @@
# 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 PoolMeta
class Template(metaclass=PoolMeta):
__name__ = 'product.template'
_history = True
class Product(metaclass=PoolMeta):
__name__ = 'product.product'
_history = True
-2
View File
@@ -1,14 +1,12 @@
[tryton]
version=7.5.0
depends:
account
account_invoice
company
currency
party
product
sale
stock
xml:
opportunity.xml
party.xml