From 3e511262cd16b70fc2df2be91fc465e00c678f54 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Wed, 19 Feb 2025 11:32:44 +0100 Subject: [PATCH] [FIX] recurring_consignment: - Add properties on partner - add company on demo product to avoid multi company error - fix typo --- recurring_consignment/__manifest__.py | 1 + recurring_consignment/demo/ir_property.xml | 23 +++++++++++++++++++ .../demo/product_product.xml | 5 ++++ recurring_consignment/models/account_move.py | 2 +- 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 recurring_consignment/demo/ir_property.xml diff --git a/recurring_consignment/__manifest__.py b/recurring_consignment/__manifest__.py index 03439fc4..8bdd5a98 100644 --- a/recurring_consignment/__manifest__.py +++ b/recurring_consignment/__manifest__.py @@ -37,6 +37,7 @@ "demo/product_product.xml", "demo/product_pricelist.xml", "demo/account_move.xml", + "demo/ir_property.xml", ], "post_init_hook": "create_consignor_sequence", "installable": True, diff --git a/recurring_consignment/demo/ir_property.xml b/recurring_consignment/demo/ir_property.xml new file mode 100644 index 00000000..c34ff711 --- /dev/null +++ b/recurring_consignment/demo/ir_property.xml @@ -0,0 +1,23 @@ + + + + + + + property_account_receivable_id + + + + + + + property_account_payable_id + + + + + diff --git a/recurring_consignment/demo/product_product.xml b/recurring_consignment/demo/product_product.xml index e8400ee9..640c04b1 100644 --- a/recurring_consignment/demo/product_product.xml +++ b/recurring_consignment/demo/product_product.xml @@ -11,6 +11,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). Commission (20% Price Excl) service + @@ -24,6 +25,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). My Consigned Product A (VAT 5% - Consignor 1) + @@ -32,6 +34,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). My Consigned Product B (VAT 5% - Consignor 1) + @@ -40,6 +43,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). My Consigned Product C (VAT 20% - Consignor 1) + @@ -48,6 +52,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). My Consigned Product D (VAT 20% - Consignor 1) + diff --git a/recurring_consignment/models/account_move.py b/recurring_consignment/models/account_move.py index e9882108..9f4ed16c 100644 --- a/recurring_consignment/models/account_move.py +++ b/recurring_consignment/models/account_move.py @@ -21,7 +21,7 @@ def action_post(self): def _recurring_consigment_mark_as_paid(self): # The first time a commission invoice is posted, create # a Miscellanious Operation to transfer amount from 'Receivable' account - # to 'Receiable / Payable' account + # to 'Receivable / Payable' account # and mark the invoice as paid for move in self: