콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

I'm trying to assign the Togo chart of accounts in Odoo to the creation of a new company in the database. The Togo chart of accounts is automatically activated but I can't. I don't know where the problem comes from after execution. tg code is assigned to chart_template but it does not work and there is no error


import loggingfrom odoo import api, modelsfrom odoo.addons.account.models.chart_template import template

_logger = logging.getLogger(__name__)

class ResCompany(models.Model):    _inherit = 'res.company'

    @api.model    def create(self, vals):        _logger.info("Creating a new company with values: %s", vals)        company = super(ResCompany, self).create(vals)        _logger.info("Company created with ID: %s and name %s", company.id,company.name)        company.chart_template='tg'        return company       

아바타
취소
관련 게시물 답글 화면 활동
12
7월 17
6860
1
5월 25
1223
0
11월 24
716
1
3월 24
928
0
6월 23
1708