When creating a contact/partner it is always created as a customer on default. The flag can be found under the tab 'Sales & Purchases'. The field 'customer' is always flagged by default. How to change it so it is not flagged by default.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Inherit the res_partner
model and add in defaults customer: False
.
You don't have to edit in the crm module. First create folder in the addons folder, name it as partner_customization. Then in that folder create 2 files named __init__.py
and __openerp__.py
. Then in __init__.py
add the line:
import partner
then in __openerp__.py
add the following:
{
'name': 'Partner Customization',
'version': '0.1',
'category': 'Custom',
'description': """
""",
'author': 'Gopakumar',
'depends': [
'crm'
],
'init_xml': [],
'update_xml': [
],
'demo_xml': [],
'test': [],
'installable': True,
'active': False,
}
Then create one more files named partner.py
. Then in partner.py
add the following:
from openerp.osv import fields, osv
class res_partner(osv.osv):
_inherit = 'res.partner'
_defaults = {
'customer': False
}
Then restart the server, then update the module list and install the new module.
Thank you very much Gopakumar. Its works very well.
Could you provide me with some additional information, please? I have put it in the res_partner.py file in the /addons/crm/ module: _defaults = { 'customer' : False, }
The only effect this had was to totally shut down my erp. ;-) I am new to the system and dont know where to make these changes, but I am willing to experiement and learn.
I have updated the answer.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 7 25
|
1265 | ||
|
1
thg 9 24
|
1723 | ||
|
0
thg 10 23
|
1982 | ||
|
2
thg 4 22
|
3535 | ||
Contacts Personal Information Page
Đã xử lý
|
|
5
thg 9 20
|
8912 |