This commit is contained in:
2026-11-08 20:08:53 +08:00
parent 7526a5fe4d
commit 9b924747c5
2692 changed files with 394867 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
from . import account_move_line
from . import esg_emission_factor
from . import res_company

View 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)

View 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')

View 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()