From b7dba2d8eed3c2af22dca53a916f12e9b842c2aa Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Thu, 31 Aug 2023 11:51:50 +0700 Subject: coa cost centre --- indoteknik_custom/models/account_account.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 indoteknik_custom/models/account_account.py (limited to 'indoteknik_custom/models/account_account.py') diff --git a/indoteknik_custom/models/account_account.py b/indoteknik_custom/models/account_account.py new file mode 100644 index 00000000..584c38f8 --- /dev/null +++ b/indoteknik_custom/models/account_account.py @@ -0,0 +1,6 @@ +from odoo import fields, models, api, _ + +class AccountAccount(models.Model): + _inherit = 'account.account' + + cost_centre_id = fields.Many2one('cost.centre', string='Cost Centre') \ No newline at end of file -- cgit v1.2.3 From 41e76bb5b668473c8086ba82ea8f405315b8e5ae Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Fri, 1 Sep 2023 10:31:23 +0700 Subject: change cost_centre to analytic_account --- indoteknik_custom/models/account_account.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indoteknik_custom/models/account_account.py') diff --git a/indoteknik_custom/models/account_account.py b/indoteknik_custom/models/account_account.py index 584c38f8..e2988625 100644 --- a/indoteknik_custom/models/account_account.py +++ b/indoteknik_custom/models/account_account.py @@ -3,4 +3,5 @@ from odoo import fields, models, api, _ class AccountAccount(models.Model): _inherit = 'account.account' - cost_centre_id = fields.Many2one('cost.centre', string='Cost Centre') \ No newline at end of file + cost_centre_id = fields.Many2one('cost.centre', string='Cost Centre') + analytic_account_ids = fields.Many2many('account.analytic.account', string='Analytic Account') \ No newline at end of file -- cgit v1.2.3 From 513bce9e13dee0453ce24b41a54d3b408e58c7f0 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 5 Sep 2023 14:45:18 +0700 Subject: Fix bug solr product variants, add analytic tags to jurnal entries line, remove validation edit di purchase pricelist --- indoteknik_custom/models/account_account.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indoteknik_custom/models/account_account.py') diff --git a/indoteknik_custom/models/account_account.py b/indoteknik_custom/models/account_account.py index e2988625..d8ac3204 100644 --- a/indoteknik_custom/models/account_account.py +++ b/indoteknik_custom/models/account_account.py @@ -4,4 +4,5 @@ class AccountAccount(models.Model): _inherit = 'account.account' cost_centre_id = fields.Many2one('cost.centre', string='Cost Centre') - analytic_account_ids = fields.Many2many('account.analytic.account', string='Analytic Account') \ No newline at end of file + analytic_tag_ids = fields.Many2many("account.analytic.tag", + string="Analytic Tags") \ No newline at end of file -- cgit v1.2.3