Commit Graph

315 Commits

Author SHA1 Message Date
OCA-git-bot
38e7956712 Merge PR #1206 into 17.0
Signed-off-by pedrobaeza
2024-01-04 15:24:08 +00:00
GuillemCForgeFlow
eee8c33159 [FIX]account_payment_purchase: return result from onchange and get properties with correct company 2024-01-04 10:21:29 +01:00
OCA-git-bot
7c04134f85 [BOT] post-merge updates 2023-12-13 07:39:20 +00:00
oca-ci
be6ec3928b [UPD] Update account_payment_purchase.pot 2023-12-13 07:36:49 +00:00
OCA-git-bot
21179276f7 Merge PR #1185 into 17.0
Signed-off-by pedrobaeza
2023-12-13 07:34:42 +00:00
David Ramia
f5cad36ca9 [MIG] account_payment_purchase: Migration to 17.0 2023-12-12 20:34:42 +01:00
David Ramia
4c76dc6527 [IMP] account_payment_purchase: pre-commit auto fixes 2023-12-12 20:08:15 +01:00
OCA-git-bot
f63ab8cc3e [BOT] post-merge updates 2023-12-11 20:55:11 +00:00
oca-ci
9d26d78f57 [UPD] Update account_payment_sale.pot 2023-12-11 20:52:35 +00:00
OCA-git-bot
dbc6b621f0 Merge PR #1186 into 17.0
Signed-off-by pedrobaeza
2023-12-11 20:50:31 +00:00
David Ramia
6d4af78f71 [MIG] account_payment_sale: Migration to 17.0 2023-11-26 20:28:23 +01:00
David Ramia
32e09ecb89 [IMP] account_payment_sale: pre-commit auto fixes 2023-11-26 20:28:23 +01:00
Alexis de Lattre
902041e766 account_payment_sale: remove unneeded code
Remove inherit of sale.advance.payment.inv: no need to inherit
_prepare_invoice_values() because it calls _prepare_invoice() from the
sale.order object
2023-11-26 20:28:23 +01:00
Alexis de Lattre
b1862a3605 account_payment_sale: payment_mode_id in sale.report 2023-11-26 20:28:23 +01:00
SodexisTeam
e10c26b62b [MIG] account_payment_sale: Migration to 16.0 2023-11-26 20:28:23 +01:00
manu
d4b2eadf17 [MIG]account_payment_sale: Migration to 15.0 2023-11-26 20:28:23 +01:00
Pedro M. Baeza
bdc37eae7f [FIX] account_payment_sale: Adapt tests to 18489012
The expected one is to not have partner bank set, as we don't want the
invoice is printed with such bank account forced.
2023-11-26 20:28:23 +01:00
Alexis de Lattre
74a758c9bd [MIG] account_payment_sale to 14.0 2023-11-26 20:28:23 +01:00
Carlos Dauden
6f96f10519 [FIX] account_payment_sale: Compatibility with account_banking_sepa_direct_debit
Steps to reproduce the problem:

- Set a payment mode with fixed journal and set the journal with bank account A.
- Create a sales order and put bank account B.
- Create invoice.
- Bank account in invoice is A instead of B.
2023-11-26 20:28:23 +01:00
OCA-git-bot
532a4c739e pre-commit update 2023-11-26 20:28:23 +01:00
Raf Ven
cf54f65fcf [MIG] account_payment_sale: Migration to 13.0 2023-11-26 20:28:23 +01:00
Raf Ven
653530ddf5 [IMP] account_payment_sale: black, isort 2023-11-26 20:28:23 +01:00
Laurent Mignon (ACSONE)
3e1f286ca0 [FIX] account_payment_sale: Propagate payment_mode to invoices created from a call to sale.action_invoice_create
Into the normal process of the invoice creation from a sale order by odoo, the onchange_partner is called. In some case, this call will reset the specific payment_mode and/or partner_bank_id set on the sale_order.
To fix this issue, we must override the _finalize_invoices method, take a snapshot of these values before the call to super and restore these values if these are changed.
fixes #536
2023-11-26 20:28:23 +01:00
Pedro M. Baeza
2f63cca7d2 [MIG] account_payment_sale: Adapt tests to v12 2023-11-26 20:28:23 +01:00
Mourad
50b6f50192 [MIG] account_payment_sale: migrate to 12.0 2023-11-26 20:28:22 +01:00
mpanarin
3c6f8722af [IMP] account_payment_sale: Add tests to increase coverage 2023-11-26 20:28:22 +01:00
Artem Kostyuk
6b07a2b6f0 [MIG] account_payment_sale: Migrate to 11.0 2023-11-26 20:28:22 +01:00
cubells
eec832ab3b [IMP] account_payment_sale: add payment mode to sale report 2023-11-26 20:28:22 +01:00
Alexis de Lattre
055dd400ad Port almost all modules to v10 (#305)
Port almost all modules to v10

* Update to EPC Rulebook v9.2 that start to apply on 2016-11-20 (bug #300)
2023-11-26 20:28:22 +01:00
Alexis de Lattre
165ef1b9bf [MIG] account_payment_sale: Migration to v9 2023-11-26 20:28:22 +01:00
Pedro M. Baeza
9d08371f66 [MIG] account_payment_sale: Migration to 8.0
* Migration and enhancement of all modules involved in SEPA
* Remove duplicated files
* Check if payment mode is set in the propagation
* Clean files
* account_payment_sale_stock: Split for removing stock dependency on sale
* Remove old translations templates
* Reorder on folder structure
* Translation template files
* Translations to spanish
* Use sale_ok and purchase_ok instead of tweaking payment type
* Add sale_ok and purchase_ok filters in partner/sale/purchase form views
* Use widget=selection for payment_mode_id fields
* Update demo data
2023-11-26 20:28:22 +01:00
Alexis de Lattre
bf2b6b1112 Add 4 new modules to handle payment type and bank accounts:
- account_payment_partner
- account_payment_sale
- account_payment_sale_stock
- account_payment_purchase

Filter the selection of invoices per payment type.
Add active field on payment.mode and payment.mode.type.
Add menu entry for Payment Types.
2023-11-26 20:28:22 +01: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
Cramosh
dc5c01c419 [FIX] account_payment_purchase: solved error get payment mode and bank id close #899 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
jesusVMayor
a2e47b6a55 account_payment_purchase: set correctly payment mode in purchases created from procurement. 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
Alexis de Lattre
207082804a Finalise the wizard of selection of move lines to pay
Add button "Add to payment/debit order" on invoice form view
Started to integrate payment transfer in account_payment_order (not finished at all though)
Various fixes/changes/improvements/...
2023-11-26 11:19:30 +01:00
Pedro M. Baeza
7cfe1b0d25 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).
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