ai*
This commit is contained in:
3
ai_esg/models/__init__.py
Normal file
3
ai_esg/models/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from . import account_move_line
|
||||
from . import esg_emission_factor
|
||||
from . import res_company
|
||||
7
ai_esg/models/account_move_line.py
Normal file
7
ai_esg/models/account_move_line.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class AccountMoveLine(models.Model):
|
||||
_inherit = 'account.move.line'
|
||||
|
||||
ai_esg_to_assign_emission_factor_cron = fields.Boolean(copy=False)
|
||||
9
ai_esg/models/esg_emission_factor.py
Normal file
9
ai_esg/models/esg_emission_factor.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class EsgEmissionFactor(models.Model):
|
||||
_inherit = 'esg.emission.factor'
|
||||
|
||||
currency_name = fields.Char(string="Currency Name", related='currency_id.name')
|
||||
uom_name = fields.Char(string="UoM Name", related='uom_id.name')
|
||||
company_name = fields.Char(string="Company Name", related='company_id.name')
|
||||
17
ai_esg/models/res_company.py
Normal file
17
ai_esg/models/res_company.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_inherit = 'res.company'
|
||||
|
||||
esg_nace_id = fields.Many2one('esg.nace')
|
||||
esg_company_size = fields.Selection(
|
||||
selection=[
|
||||
('small', '< 250 employees'),
|
||||
('medium', '250 - 1000 employees'),
|
||||
('large', '> 1000 employees'),
|
||||
],
|
||||
)
|
||||
esg_revenues_value = fields.Monetary(currency_field='currency_id')
|
||||
esg_assets_value = fields.Monetary(currency_field='currency_id')
|
||||
esg_core_business_description = fields.Html()
|
||||
Reference in New Issue
Block a user