Commit Graph

15 Commits

Author SHA1 Message Date
Víctor Martínez
ad295dee65 [FIX] account_payment_purchase: Leave the partner_bank_id field empty in purchase invoice process
Example use case:
- Create a Supplier and set a bank account.
- Creating a purchase order with a Supplier Bank Account
- The payment method of the payment method must have the Bank Account Required box unchecked.
- Confirm the purchase order and create the invoice with the "Create Bill" button.
- The invoice must have the bank account empty.

TT46502
2024-07-01 08:14:16 +02:00
Alexis de Lattre
30204f66e9 account_payment_purchase: replace api.onchange by computed field on purchase.order
Add check_company=True on the 2 fields of purchase.order
2023-11-26 11:29:37 +01:00
David Ramia
5dc27e9f13 [MIG] account_payment_purchase: Migration to 16.0 2023-11-26 11:29:37 +01:00
Vladimir Mitreski
8492ed9e85 [FIX] account_payment_purchase: Make payment method to require bank account
Without this fix, the partner_bank_id was being reset to False on change of 'company_id'
in the _onchange_purchase_auto_complete method in account.move in the following unit test:
def test_from_purchase_order_invoicing_bank

That's because in commit 9be9766535 we switched to
getting payment method from env.ref('account.account_payment_method_manual_out'), which has
bank_account_required == False by default, while before that we were creating payment method for
which we were explicitly setting bank_account_required as True

Also tag unit test as post_install
2023-11-26 11:29:36 +01:00
Koen Loodts
1cb7e6b774 [MIG] account_payment_purchase: Migration to 15.0 2023-11-26 11:29:36 +01:00
Jordi Ballester
1b490f191b [account_payment_purchase][fix] Only warn for non-blank payment mode or bank PO
- Only issue a warning message if the PO had a non-blank payment mode or bank.
2023-11-26 11:29:36 +01:00
Carlos Roca
2ae9b8a809 [MIG] account_payment_purchase: Migration to v14 2023-11-26 11:29:36 +01:00
Andrea
5de2cb5390 Split account_payment_purchase (add account_payment_purchase_stock) 2023-11-26 11:29:36 +01:00
mreficent
23bc63cee1 [MIG] account_payment_purchase: Migration to 13.0 2023-11-26 11:29:35 +01:00
mreficent
e0ab4235ea [IMP] account_payment_purchase: black, isort 2023-11-26 11:29:35 +01:00
cubells
288caf7323 account_payment_purchase: Migration to 11.0 2023-11-26 11:29:35 +01:00
Abranes
4bdb0a9816 account_payment_purchase: Migration to 10.0 2023-11-26 11:19:30 +01:00
cubells
e0ae173d35 account_payment_purchase module 2023-11-26 11:19:30 +01:00
Alexis de Lattre
3f9d8c79f8 Remove module account_payment_purchase 2023-11-26 11:19:30 +01:00
Pedro M. Baeza
42212b5625 account_payment_purchase: Propagate payment_mode on MTO/drop shipping 2023-11-26 11:19:30 +01:00