How i can change default Individual partner !
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilitat
- Inventari
- PoS
- Project
- MRP
This question has been flagged
1
Respondre
865
Vistes
How i can change default Individual partner !
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
1
de jul. 25
|
141 | ||
|
0
de jul. 25
|
129 | ||
|
1
de jul. 25
|
198 | ||
How can I import Suppliers?
Solved
|
|
1
de jul. 25
|
318 | |
Invoice. Write-Off
Solved
|
|
1
de jul. 25
|
190 |
Thank you for help me