Friday, November 4, 2022
2 changes · master
Enhancements to existing features
The CRM leads and opportunities list is now less cluttered by hiding phone and company columns by default. Users can still show these fields when needed, but the everyday view is easier to scan and work with.
Original PR description
At the moment, the tree view is quite dense. In order to ease its use, make company and phone fields optional and hidden by default. This is done for crm.leads as both leads and opportunities. Task-3053159
Product option restrictions are now defined alongside the products they affect, instead of being split across the sales module. This reduces the risk of installation failures or data inconsistencies when modules are installed in different orders.
Original PR description
Following recent changes in stable deleting/archiving product variants forbidden by attributes exclusions, installing some modules after the sale app failed because the product `product_product_4d` specified in `product` was deleted by the attributes exclusions of the `sale` module. This has been fixed in stable by removing all references to this xml_id. Nevertheless, this bug showed us that the definition of attributes exclusion for a product in another module than the one creating it is a bad idea, as it modifies what's allowed or not with that product, leading to potential database inconsistencies. This commit moves the exclusions targeting products from the `product` module to the `product` module, to reduce the risks of other modules using/referencing the deleted/modified products in a way conflicting with the exclusions.