Commit Graph

276 Commits

Author SHA1 Message Date
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
Pedro M. Baeza
c13571ba17 Make modules uninstallable 2023-11-26 11:19:30 +01:00
Stéphane Bidoul
232bfd02ea prefix versions with 8.0 2023-11-26 11:19:30 +01:00
Yannick Vaucher
0b24975313 Add missing default oca icons 2023-11-26 11:19:30 +01:00
Philippe Schmidt
2c009eeb56 some typo corrections 2023-11-26 11:19:30 +01:00
Philippe Schmidt
6548191646 Add requested descriptions in an OCA README.rst file 2023-11-26 11:19:29 +01:00
Pedro M. Baeza
419e4bf22e Expand authors + manifest cleaning 2023-11-26 11:19:29 +01:00
Alexandre Fayolle
d6fdbf72b9 Add OCA as author of OCA addons
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
2023-11-26 11:19:29 +01:00
Danimar Ribeiro
f8dbec6f90 Portuguese translations 2023-11-26 11:19:29 +01:00
Alexis de Lattre
ea705640b0 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 11:19:29 +01:00
Pedro M. Baeza
1332018c6f Use sale_ok and purchase_ok instead of tweaking payment type 2023-11-26 11:19:29 +01:00
Pedro M. Baeza
b106c8d796 Translation template files [IMP] Translations to spanish 2023-11-26 11:19:29 +01:00
Pedro M. Baeza
188196b1cb account_payment_sale_stock: Split for removing stock dependency on sale [DEL] Remove old translations templates [IMP] More reorder on folder structure 2023-11-26 11:19:29 +01:00
Pedro M. Baeza
bfbd3b1be5 Clean files 2023-11-26 11:19:29 +01:00
Pedro M. Baeza
e58c38f32f Migration and enhancement of all modules involved in SEPA 2023-11-26 11:19:29 +01:00
Pedro M. Baeza
5a70c720a6 Initial adjustments for 8.0 repository 2023-11-26 11:19:29 +01:00
Launchpad Translations on behalf of banking-addons-team
8e916954f8 Launchpad automatic translations update. 2023-11-26 11:19:29 +01:00
Launchpad Translations on behalf of banking-addons-team
695b38066d Launchpad automatic translations update. 2023-11-26 11:19:29 +01:00
Alexis de Lattre
c25ff72b1d Update to the new data-model decided during the Open Days 2014. Add demo data. 2023-11-26 11:19:29 +01:00
Raphaël Valyi
8c0f3d5ad1 wrapping module description lines to keep cool with the PEP-8 extremists 2023-11-26 11:19:29 +01:00
Alexis de Lattre
0703a290a6 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 11:19:29 +01:00
OCA-git-bot
35c4c673e3 [BOT] post-merge updates 2023-11-25 09:12:04 +00:00
oca-ci
cdef86f179 [UPD] Update account_payment_partner.pot 2023-11-25 09:09:47 +00:00
OCA-git-bot
eefc33831c Merge PR #1183 into 17.0
Signed-off-by pedrobaeza
2023-11-25 09:07:36 +00:00
Miquel Alzanillas
4d1c73bd14 [MIG] account_payment_partner: Migration to 17.0 2023-11-25 08:46:06 +01:00
OCA-git-bot
cd066c3f73 [BOT] post-merge updates 2023-11-24 19:42:49 +00:00
oca-ci
0474e3804e [UPD] Update account_payment_mode.pot 2023-11-24 19:40:48 +00:00
OCA-git-bot
1d8969ca7f Merge PR #1182 into 17.0
Signed-off-by pedrobaeza
2023-11-24 19:38:58 +00:00
Miquel Alzanillas
7e0324aa9c [MIG] account_payment_mode: Migration to 17.0 2023-11-24 20:35:53 +01:00
Miquel Alzanillas
4d46d09a4b [IMP] account_payment_partner: pre-commit auto fixes 2023-11-22 22:20:03 +01:00
OCA-git-bot
6034b7348e [BOT] post-merge updates 2023-11-22 22:13:18 +01:00
OCA-git-bot
deb95562c6 [UPD] README.rst 2023-11-22 22:13:18 +01:00
Luis J. Salvatierra
132374d104 [FIX] account_payment_partner: fetchPreloadedData bug using selection widget 2023-11-22 22:13:18 +01:00
Rémi
21d4734f87 Translated using Weblate (French)
Currently translated at 100.0% (37 of 37 strings)

Translation: bank-payment-16.0/bank-payment-16.0-account_payment_partner
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_partner/fr/
2023-11-22 22:13:18 +01:00
OCA-git-bot
a28a727bc8 account_payment_partner 16.0.1.2.1 2023-11-22 22:13:18 +01:00
Akim Juillerat
f79dca5010 account_payment_partner: Fix computation of partner_bank_id
The computation of partner_bank_id has not been migrated properly
since the move from account.invoice to account.move.

Before, we had an onchange on partner_id that did the following:
  - If no partner or no company, remove payment mode
    - If type = in_invoice, remove partner_bank_id as well
  - If partner and company,
    - If type = in_invoice, set payment mode from partner
      - if payment mode's payment method has bank account required,
        set the partner_bank_id to the commercial partner's bank
      - else set partner_bank_id to False
    - If type = out_invoice, set payment mode from partner and
      do not assign partner_bank_id

We also had an onchange on payment_mode_id that did the following:
  - If payment mode and its payment_type=outbound and its payment method
    has bank account required, set partner_bank_id to False
  - If no payment mode, set partner_bank_id to False

Now that partner_bank_id is a computed field, we shouldn't set its value
to False if the move is not a vendor bill or doesn't have a payment mode.

The computation of partner_bank_id must instead reflect the conditions we
used to have, that is:
  - If we don't have a payment_mode, set value to False
  - If we have a payment mode
    - If type=in_invoice and payment mode's payment method has not bank
      account required, set partner_bank_id to False (as setting the bank account
      from the partner is done in the call to super)
    - If type=out_invoice
      - if payment mode's payment method has bank account required
        - set partner_bank_id to the bank account linked to the fixed journal
          of payment mode if defined
        - do not set anything if that isn't the case since setting the bank account
          from the company is done in the call to super)
      - if payment mode's payment method does not have bank account required,
        set partner_bank_id to False

Closes: #1091
2023-11-22 22:13:18 +01:00
OCA-git-bot
a094cd0108 account_payment_partner 16.0.1.2.0 2023-11-22 22:13:18 +01:00
Rodrigo
32e6c6e125 [FIX] account_payment_partner: bad application of attributes on the field partner_bank_id, this commit fixes showing the same field twice in customer invoices. 2023-11-22 22:13:18 +01:00
gelo joga Rodríguez
5fe0e38208 Translated using Weblate (Spanish)
Currently translated at 100.0% (37 of 37 strings)

Translation: bank-payment-16.0/bank-payment-16.0-account_payment_partner
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_partner/es/
2023-11-22 22:13:18 +01:00
OCA-git-bot
60eda6f545 account_payment_partner 16.0.1.1.1 2023-11-22 22:13:18 +01:00