Since ce8d7a19766a record rules (and especially company rules) are no more
enforced without check access. So the mandate selection should test explicitly
for the same company.
For that a new generator method is added to party to yield mandates that can
be used for a payment so this method can be easily extended to add more
constraints.
Closes#12324
(grafted from 632676e2c4244cba2ced1fa6d455219deaeefae5)
--HG--
branch : 6.0
This is the only case where we are sure that the layout will be conserved.
Closes#12320
(grafted from fd07f6017e8154dbb5740c296e48d4c974eaf3e8)
--HG--
branch : 6.0
The method get_recall_lines is called each time an invoice is created so it
should consider the amount previously recalled.
Closes#12319
(grafted from e29bfa6cb09fce837d5f01b20468e42bbfce5def)
--HG--
branch : 6.0
A return URL is now required if the payment methods do not disable it.
Closes#12509
(grafted from 6e9ec5ef33f3ad2e3d6d590bdcbde2d1c28f68c0)
--HG--
branch : 6.0
When synchronize moves, the origin of outgoing is updated to point the
new incoming move instead of the original one.
Closes#12272
(grafted from f36f6212c3596d5860722535adc80349496d07be)
--HG--
branch : 6.0
When synchronize inventory to outgoing moves, the origin of the inventory is
updated to point to the new corresponding outgoing move instead of the
original one.
Closes#12272
(grafted from 72fbac94b52006eaa854786b60aa1faf1a2c8d48)
--HG--
branch : 6.0
ed41959390ff added a synchronization on assign to prevent infinite warning
loop on pack if it creates new move without origin.
But 38e2a76db719 refactoring lost this behavior.
Closes#12503
(grafted from 903204d5d1728e818ec44bf5aa0a629c2efd1a65)
--HG--
branch : 6.0
The cost price on stock move is only required by validation so we can not
ensure over time that all the stock moves selected have a cost price.
Closes#12468
(grafted from adea1ec5dd32ec8f1a353a6f3105b82707485914)
--HG--
branch : 6.0
This is needed ensure that at least one line to pay of the invoice is
reconciled.
The lines and payment lines are also shown for overpayment.
Closes#12403
(grafted from 72345bf646caff0e1aa9c373a68906270fe7b688)
--HG--
branch : 6.0
When synchronize the outgoing or incoming move, the secondary unit must be
copied from the template.
Closes#12301
(grafted from b190ea97bd1a2040686ed6c9565ac20c45c529f4)
--HG--
branch : 6.0