mirror of
https://github.com/NaN-tic/trytond-babi_reports_sale_opportunity-old.git
synced 2023-12-14 03:53:04 +01:00
20 lines
529 B
Python
20 lines
529 B
Python
|
# The COPYRIGHT file at the top level of this repository contains the full
|
||
|
# copyright notices and license terms.
|
||
|
from trytond.pool import PoolMeta
|
||
|
|
||
|
__all__ = ['Model']
|
||
|
__metaclass__ = PoolMeta
|
||
|
|
||
|
|
||
|
class Model:
|
||
|
__name__ = 'ir.model'
|
||
|
|
||
|
@classmethod
|
||
|
def __register__(cls, module_name):
|
||
|
super(Model, cls).__register__(module_name)
|
||
|
models = cls.search([('model', 'in', ['sale.opportunity'])])
|
||
|
if models:
|
||
|
cls.write(models, {
|
||
|
'babi_enabled': True
|
||
|
})
|