[18.0][ADD] account_edi_ubl_cii_payment_unece#1337
Conversation
910c688 to
396a92c
Compare
f0dad94 to
3fd834f
Compare
jbaudoux
left a comment
There was a problem hiding this comment.
Thanks. LG.
Can you rename the module to ` account_edi_ubl_cii_payment_unece´ to remove confusion with the module implementing tax_unece.
Can you also squash fixups?
3fd834f to
d6dfc60
Compare
|
@sbejaoui Can you review this one and, if approved, backport it to v16.0 ? |
|
@sebalix I just tested the module. An Something needs to provide a supplier SEPA direct debit payment method data entry so that it can be configured. Like this https://github.com/OCA/bank-payment-alternative/blob/18.0/account_payment_sepa_direct_debit/data/account_payment_method.xml but in outbound (name=SEPA Direct Debit for suppliers). I think it make sense to add it in this module. WDYT? |
@sebalix We even need 2 data entries as there are 2 UNECE code for direct debit: 59 or 49 https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL4461/ |
|
Tested. Works fine once the missing data entry is added Would also be worth adding a note that the payment methods can be managed by installing the module https://github.com/OCA/bank-payment-alternative/tree/18.0/account_payment_base_oca |
|
@jbaudoux yes, that would mean adding UNECE module(s) dependency to such modules (those in OCA/bank-payment-alternative, and also OCA/bank-payment). Or adding new glue module(s) completing the missing unece config on payment methods. |
My idea was to add the data in this module as this doesn't require a new dependency. And for having the menu to configure payment method lines, just add a note in the README (maybe in a separate commit as this is relevant to v18 and not before). I think only OCA/bank-payment-alternative uses the native odoo account.payment.method.line. It's then up to the user to install it or not. |
|
This PR has the |
Integrate UNECE Payment Means (module `account_payment_unece` from `OCA/community-data-files`) with Odoo standard UBL/CII electronic invoices (module `account_edi_ubl_cii`).
85cf1c4 to
c5cc136
Compare
| <odoo noupdate="1"> | ||
| <record id="direct_debit" model="account.payment.method"> | ||
| <field name="name">Direct Debit to suppliers</field> | ||
| <field name="code">direct_debit</field> |
There was a problem hiding this comment.
For the code you use here, you need to extend the method in AccountPaymentMethod to have the AccountPaymentMethodLine created
class AccountPaymentMethod(models.Model):
_inherit = "account.payment.method"
@api.model
def _get_payment_method_information(self):
res = super()._get_payment_method_information()
res["direct_debit"] = {"mode": "multi", "type": ("bank",)}
res["direct_debit_sepa"] = {"mode": "multi", "type": ("bank",)}
return res
|
|
||
| <record id="direct_debit_sepa_" model="account.payment.method"> | ||
| <field name="name">SEPA Direct Debit to suppliers</field> | ||
| <field name="code">direct_debit_sepa</field> |
There was a problem hiding this comment.
@alexis-via As we need different code for sepa direct debit inbound and outbound (because inbound requires a pain version and outbound doesn't - also it is in different modules) and you already used
sepa_direct_debit for inbound and sepa_credit_transfer for outbound, we've put direct_debit_sepa for outbound.
There was a problem hiding this comment.
For me, for SEPA direct debit outbound, the code is "manual", using the native account.payment.method declared in the account module here: https://github.com/odoo/odoo/blob/18.0/addons/account/data/account_data.xml#L135
When there is no bank file to generated, using the account.payment.method with code "manual" is the good implementation for me. You can have several account.payment.method.line that use the same account.payment.method with code "manual".
There was a problem hiding this comment.
@alexis-via The issue is that the unece code is on account.payment.method and there is a unicity constrain per code, payment_type (in/out). So we have to put a different code for each account.payment.method having a different unece code.

Integrate the UNECE payment means (
account_payment_unece) with Odoo standard moduleaccount_edi_ubl_cii.