Commit Graph

16 Commits

Author SHA1 Message Date
Jordi Ballester
22b32603ae [account_payment_purchase][fix]
- Only issue a warning message if the PO had a non-blank payment mode or bank.
2021-04-29 10:44:08 +02:00
Atte Isopuro
6e165f8ef0 [FIX] account_payment_purchase: Do not warn if no purchase
If the user set no purchase order on an invoice, it makes no sense
to warn them about details being different.

The onchange for the purchase_id field is not only run when the user
sets a purchase, but also when they open a new, empty form view.
Normally this causes no problems, but in some contexts the user
may want to define defaults for the payment term or bank account.
If these are defined, they will not be False on a new draft invoice,
but there will be no purchase, so the code interpreted the values
as having "changed".

We avoid this by simply not checking for changes if no purchase has
been set on the invoice.
2021-04-23 16:01:55 +02:00
Andrea
8b5f61beb7 Split account_payment_purchase (add account_payment_purchase_stock) 2020-03-18 11:35:41 +01:00
mreficent
fbdfb3db4b [MIG] account_payment_purchase: Migration to 13.0 2020-03-18 11:35:41 +01:00
mreficent
3afd30a175 [IMP] account_payment_purchase: black, isort 2020-03-18 11:35:41 +01:00
Nikul-Chaudhary
688248484e [MIG] account_payment_purchase v11 to v12 2020-03-18 11:32:26 +01:00
cubells
27d83e2c97 account_payment_purchase: Migration to 11.0 2020-03-18 11:32:26 +01:00
Abranes
e164c39e5c account_payment_purchase: Migration to 10.0 2020-03-18 11:32:26 +01:00
cubells
df1b01ae84 account_payment_purchase module 2020-03-18 11:32:26 +01:00
jesusVMayor
849525023f account_payment_purchase: set correctly payment mode in purchases created from procurement. 2020-03-18 11:32:26 +01:00
Alexis de Lattre
5d9a1c0565 Remove module account_payment_purchase 2020-03-18 11:32:26 +01:00
Pedro M. Baeza
8e2005bae5 account_payment_*: Ensure work with dropshipping dual invoice
When invoicing from dropshipping, the same picking serves for both
invoicing sale and purchase orders. The OCA module
stock_dropshipping_dual_invoice makes that this happens, but
as the picking is the same, it contains both the sale and the
purchase reference, making that the resulting invoices don't have
the correct payment mode. This is harmless for the rest of
operations, as the dictionary query is provided with the proper
default value. On v9, dropshipping dual invoice has been merged
into core, so this patch for sure will be welcome in that version
(if the used method is the same).
2020-03-18 11:32:26 +01:00
Pedro M. Baeza
4e426d6c82 account_payment_purchase: Propagate payment_mode on MTO/drop shipping 2020-03-18 11:32:26 +01:00
Pedro M. Baeza
40b749d020 Use sale_ok and purchase_ok instead of tweaking payment type 2020-03-18 11:32:26 +01:00
Pedro M. Baeza
40a52af243 account_payment_sale_stock: Split for removing stock dependency on sale [DEL] Remove old translations templates [IMP] More reorder on folder structure 2020-03-18 11:32:26 +01:00
Pedro M. Baeza
86ae32ab30 Migration and enhancement of all modules involved in SEPA 2020-03-18 11:32:26 +01:00