[18.0][MIG] pos_payment_change: Migration to 18.0#1573
Conversation
- Black python code - OCA Convention - Add tests - add configuration on pos.config, with two option 'refund' or 'update' - The 'refund' option makes the module compatible with (French) certification - make the module compatible with pos_order_return
…on PoS Order(s) to know the history of the payments
…ontrol ; [ADD] display old payment lines
Translated using Weblate (Spanish) Currently translated at 100.0% (31 of 31 strings) Translation: pos-12.0/pos-12.0-pos_payment_change Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_payment_change/es/
add new line Pylint fix pylint
Currently translated at 100.0% (33 of 33 strings) Translation: pos-12.0/pos-12.0-pos_payment_change Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_payment_change/es/
Translated using Weblate (German) Currently translated at 100.0% (33 of 33 strings) Translation: pos-12.0/pos-12.0-pos_payment_change Translate-URL: https://translation.odoo-community.org/projects/pos-12-0/pos-12-0-pos_payment_change/de/
A cash payment method must have a cash journal.
[UPD] Update pos_payment_change.pot [UPD] README.rst
Currently translated at 100.0% (33 of 33 strings) Translation: pos-16.0/pos-16.0-pos_payment_change Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_change/es/
Translated using Weblate (Italian) Currently translated at 100.0% (33 of 33 strings) Translation: pos-16.0/pos-16.0-pos_payment_change Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_change/it/ [UPD] README.rst Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: pos-16.0/pos-16.0-pos_payment_change Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_change/
Currently translated at 100.0% (33 of 33 strings) Translation: pos-16.0/pos-16.0-pos_payment_change Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_change/es/
Currently translated at 100.0% (33 of 33 strings) Translation: pos-16.0/pos-16.0-pos_payment_change Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_change/fr/
In old version, two certifications modules was present in odoo. l10n_fr_pos_cert and l10n_fr_certification. In odoo 16, only l10n_fr_pos_cert exists. [BOT] post-merge updates
…e obsolete Warning
[BOT] post-merge updates
Better readme FIX OCA#1115 [BOT] post-merge updates
[BOT] post-merge updates
Translated using Weblate (Portuguese (Portugal)) Currently translated at 100.0% (33 of 33 strings) Translation: pos-16.0/pos-16.0-pos_payment_change Translate-URL: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_payment_change/pt_PT/
[FIX] pos_payment_change: rebase test on TestPoSCommon [FIX] pos_payment_change: in tests replace Marc Demo to user with explicit rights [FIX] pos_payment_change: add compatibility with pos_order_copy Co-authored-by: Eugene Molotov <molotov@it-projects.info> [UPD] Update pos_payment_change.pot [BOT] post-merge updates
Co-authored-by: Abraham Anes <abrahamanes@gmail.com>
psycopg2.errors.ForeignKeyViolation: insert or update on table "pos_order" violates foreign key constraint "pos_order_partner_id_fkey" DETAIL: Key (partner_id)=(44) is not present in table "res_partner
Changes done: - Remove context (TestPoSCommon already has it) - Use the new_test_user() method to create users - Use the BaseCommon class
718d2dd to
7ec84d3
Compare
|
/ocabot migration pos_payment_change If the main goal of the module is already covered, shouldn't this be renamed or to start a new one with the missing feature? |
I actually think the module's name is appropriate because its purpose is to modify pos payments when Odoo Core doesn't allow it. |
|
Yes, but it's too generic. Now that feature is covered by core, except the case where the order has been invoiced, so the module name should reflect it. |
It is important to remember that this module also includes the “Refund and Resale” option (at the |
|
Yes, and that's why I'm saying that the module is now other thing. I would say |
Okay, so I'll rename the module to |
|
Let's see what @legalsylvain thinks. For us, AFAIK, we only need the other part. |
Migration to 18.0
Superseed #1453
Changes done:
@Tecnativa TT62460