When creating a partner, the fields where the information is not specified were
filled with an empty string value.
The empty string value is not ideal as prevents to use filters like "email not
set" and forces to use more complexe domain "... or email = ''"
Instead, set the value false for the fields were nothing is provided (same
behaviour as backend web client).
Remove the fields.barcode overwrite to empty string as it is probably an
unintentional side effect of 3b33e5c3.
opw-684902
Use copysign to take into account the sign of the base amount which includes the sign
of the quantity and the sign of the price_unit
Amount is the fixed price for the tax, it can be negative
Base amount included the sign of the quantity and the sign of the unit price and when
a product is returned, it can be done either by changing the sign of quantity or by changing the
sign of the price unit.
When the price unit is equal to 0, the sign of the quantity is absorbed in base_amount then
a "else" case is needed.
opw:684459
This test is ran in the backend and, if we do not mark it as post
install, the dependencies of the web module are not installed.
The webclient will then errors like "View type 'kanban' is not present
in the view registry".
This method is not very useful. Why ? When any exception is raised, odoo will rollback
all the transaction which were not committed, hence the purpose of the method won't be
served, which was, to update the 'history' record which was created before an invalid
action was performed.
- removed fields of 'res.partner.job' and 'res.partner.contact' models
- removed non-stored compute field 'base' of model 'account.invoice.tax' from anonymization list
- removed fields 'tax_amount' and 'amount_taxed' which no more exists in 'account.move.line' model
- removed field 'check_total' which no more exists in 'account.invoice' model
- removed field 'partner_phone' which no more exists in 'crm.phonecall' model
The 2 calendar notification routes were in auth
`none`. This causes no problem, but since they are
reimplementing the auth user mecanism, it is better
to set them directly in auth `user`. Moreover, they
are only called from webclient, when the user is
logged.
This commit also migrate them to new API (we forgot
them ....)