-
- Downloads
[IMP] base: Remove customer and supplier fields from res.partner
Purpose
=======
Fields `customer` and `supplier` on `res.partner`
are mostly used in domains of many2x fields.
Those domains can confuse end users because they don't
see the partner they are looking for; and it's not obvious why.
Some identified problems:
1. It can lead to duplicated partners: the user does not find
the partner, so he creates a new one.
2. The user imports supplier contacts in the Contacts app, so they
don't get the `supplier` flag. Then the user wants to make a purchase order,
and cannot find the new suppliers in the list
3. A user removes the customer flag on a prospect, because they don't think
it's a customer yet - except now they can't make a quote for that customer...
Specification
=============
Remove the two mentioned fields.
Since fields `customer` and `supplier` have been removed, all partners
are now shown in many2one dropdowns.
But in some cases, not all partners are relevant or some are more likely
to be relevant than others. e.g. when creating a PO, top suppliers have a
higher priority than other partners.
So, adapt the places where those fields were used with the new mechanism to
display the searched the partners, according to the number purchase/sales
orders they made.
TaskID: 2031147
Co-authored-by:
Yannick Tivisse <yti@odoo.com>
Showing
- addons/account/models/account_move.py 0 additions, 3 deletionsaddons/account/models/account_move.py
- addons/account/models/reconciliation_widget.py 1 addition, 6 deletionsaddons/account/models/reconciliation_widget.py
- addons/account/report/account_invoice_report_view.xml 2 additions, 2 deletionsaddons/account/report/account_invoice_report_view.xml
- addons/account/static/src/js/reconciliation/reconciliation_model.js 2 additions, 8 deletions...ount/static/src/js/reconciliation/reconciliation_model.js
- addons/account/static/src/js/reconciliation/reconciliation_renderer.js 1 addition, 1 deletion...t/static/src/js/reconciliation/reconciliation_renderer.js
- addons/account/static/tests/reconciliation_tests.js 8 additions, 10 deletionsaddons/account/static/tests/reconciliation_tests.js
- addons/account/tests/account_test_no_chart.py 0 additions, 1 deletionaddons/account/tests/account_test_no_chart.py
- addons/account/views/account_move_views.xml 1 addition, 4 deletionsaddons/account/views/account_move_views.xml
- addons/account/views/account_payment_view.xml 1 addition, 1 deletionaddons/account/views/account_payment_view.xml
- addons/account/views/account_view.xml 1 addition, 2 deletionsaddons/account/views/account_view.xml
- addons/account/views/partner_view.xml 3 additions, 3 deletionsaddons/account/views/partner_view.xml
- addons/auth_signup/models/res_users.py 0 additions, 1 deletionaddons/auth_signup/models/res_users.py
- addons/base_automation/data/base_automation_demo.xml 1 addition, 1 deletionaddons/base_automation/data/base_automation_demo.xml
- addons/base_automation/tests/test_base_automation.py 4 additions, 4 deletionsaddons/base_automation/tests/test_base_automation.py
- addons/base_automation/tests/test_models.py 1 addition, 1 deletionaddons/base_automation/tests/test_models.py
- addons/crm/views/crm_lead_views.xml 4 additions, 4 deletionsaddons/crm/views/crm_lead_views.xml
- addons/crm/views/res_partner_views.xml 0 additions, 1 deletionaddons/crm/views/res_partner_views.xml
- addons/crm/wizard/crm_lead_to_opportunity_views.xml 1 addition, 1 deletionaddons/crm/wizard/crm_lead_to_opportunity_views.xml
- addons/delivery/views/partner_view.xml 1 addition, 1 deletionaddons/delivery/views/partner_view.xml
- addons/fleet/models/fleet_vehicle_cost.py 4 additions, 4 deletionsaddons/fleet/models/fleet_vehicle_cost.py
Loading
Please register or sign in to comment