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

Hi,

In Odoo, when you create a new contact (res.partner), the default type is usually set to "Individual" (is_company = False). If you want to change the default to "Company" instead (or vice versa), you can do it by modifying the default value of the is_company field.

Try any of the following methods.

1- Change Default via Python (in a custom module)

Python

from odoo import models, fields


class ResPartner(models.Model):

    _inherit = 'res.partner'


    is_company = fields.Boolean(default=True)

2- Change Default via Studio (if using Odoo Studio)

3- Use Automated Action (if no module access)

            - Go to Settings > Technical > Automated Actions

            - Create a new action:

                         -Model: Contact

                         -Trigger: On Creation

                         - Add a server action with Python code:

                                      record.is_company = True


Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
0
8월 25
1
3
7월 25
306
3
7월 25
1668
1
7월 25
157
1
7월 25
250