Add translations
Add test coverage for caching of changeset rules
Add unique constraint (model_id, field_id) on rules
Add rules in demo data
Put the security groups links in noupdate
Put keep the groups in a noupdate=0 section so the records in ir.model.data
will still be modifiable by other modules.
Store the source of a changeset
Differentiate rules according to their origin
Rules are applied also for manual edition
Action is required
Do not keep recordsets in ormcache
Because they would be unreadable as soon as the cursor is closed.
Instead, we keep only the id and the record is browsed for every new
environment.
Remove useless 'model_id' on changeset rules
model_id has been removed
Remove reference to the model_name on rules
Because the model has been removed earlier (dead code)
Fix issue when applying empty many2one
Do not create changesets on moved contacts
As we just created the contact with a 'copy' we don't want to have a
changeset for the initialization values
Update translations
Use a selection widget on source model
Adapt for inclusion in OCA
Rename 'Pending Changesets' to 'Changes'
It's shorter
Add screenshots
Do not create a changeset when both sides are empty
But have a different type (e.g. False and '')
* [ADD] partner_default_sale_discount
Default sales discount per partner
==================================
This module allows to define at partner level a default discount to be applied
on sales orders as the default one. As the field is a company dependent one,
you can configure a different value for the partner for each of your companies.
Configuration
=============
Enabling the use of discounts in Odoo:
* Go to *Sales > Configuration > Settings*
* On the group "Quotations & Sales", select the option "Allow discounts on
sales order lines" for the "Discount" section.
Setting a default sales discount:
* Then, go to *Sales > Customers*.
* Create or modify a customer.
* Go to "Sales & Purchases" page.
* In the "Sale" section, there's a field called "Default sales discount (%)"
where you can fill the default discount percentage.
* This value can only be filled at company partners, not for contacts.
Usage
=====
To use this module, you need to:
* Go to Sales > Quotations.
* Create a new quotation.
* Select a partner with a default discount applied.
* Create an order line, and you will see this discount as default in the line.
Known issues / Roadmap
======================
* This module doesn't work with *product_visible_discount*, as it overwrites
the discount field with its own value.