summaryrefslogtreecommitdiff
path: root/addons/hr_expense/data
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2019-07-31 15:18:14 +0200
committerYannick Tivisse <yti@odoo.com>2019-08-01 12:42:03 +0200
commit3e97cff7797c4f7e695d20def6b920561b6a6525 (patch)
tree86aafd7866b18c7ebe942ce3c418a0dbd17cafa1 /addons/hr_expense/data
parent8766f388da9b642ba4433d8d5d670847b472cff8 (diff)
[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>
Diffstat (limited to 'addons/hr_expense/data')
-rw-r--r--addons/hr_expense/data/hr_expense_demo.xml1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/hr_expense/data/hr_expense_demo.xml b/addons/hr_expense/data/hr_expense_demo.xml
index 0a171e015a7..57ec21bda80 100644
--- a/addons/hr_expense/data/hr_expense_demo.xml
+++ b/addons/hr_expense/data/hr_expense_demo.xml
@@ -17,7 +17,6 @@
<record id="res_partner_address_fp" model="res.partner">
<field name="name">Pieter Parter's Farm</field>
<field name="parent_id" eval="ref('base.partner_root')"/>
- <field name="supplier">1</field>
<field name="street">Chaussée de Namur, 40</field>
<field name="zip">1367</field>
<field name="city">Grand-Rosière-Hottomont</field>