-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF] recurring_consignment_pos: Migration to V16:
- no need to use anymore constrains to prevent sale to customer in Point of sale - Add test - add constrains to avoid to change a consignor setting, if a PoS session is opened because incorrect taxes configuration should be loaded and then generate bad account move. [FIX] recurring_consignment: - Fix bad lines in commission report, for account move lines that are generated by PoS
- Loading branch information
1 parent
9c98971
commit 0839aaf
Showing
21 changed files
with
394 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2015 - Today: GRAP (http://www.grap.coop) | ||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
<record id="pos_config" model="pos.config"> | ||
<field name="name">Pos Config</field> | ||
<field name="company_id" ref="recurring_consignment.company" /> | ||
<field name="journal_id" ref="recurring_consignment.account_journal_sale" /> | ||
<field name="picking_type_id" model="stock.picking.type" search="[('company_id', '=', ref('recurring_consignment.company')), ('code', '=', 'outgoing'), ('sequence_code', '=', 'POS')]" /> | ||
<field name="invoice_journal_id" ref="recurring_consignment.account_journal_sale" /> | ||
<field name="payment_method_ids" eval="[(4, ref('recurring_consignment_pos.payment_method_cash'))]" /> | ||
<field name="available_pricelist_ids" eval="[(4, ref('recurring_consignment.sale_pricelist_10'))]" /> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2015 - Today: GRAP (http://www.grap.coop) | ||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
<record id="payment_method_cash" model="pos.payment.method"> | ||
<field name="name">Cash Method</field> | ||
<field name="journal_id" ref="recurring_consignment.account_journal_cash" /> | ||
<field name="company_id" ref="recurring_consignment.company" /> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2015 - Today: GRAP (http://www.grap.coop) | ||
@author: Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
<record id="recurring_consignment.consigned_product_consignor_1_vat_5_A" model="product.product"> | ||
<field name="available_in_pos" eval="True"/> | ||
</record> | ||
|
||
<record id="recurring_consignment.consigned_product_consignor_1_vat_5_B" model="product.product"> | ||
<field name="available_in_pos" eval="True"/> | ||
</record> | ||
|
||
<record id="recurring_consignment.consigned_product_consignor_1_vat_20_C" model="product.product"> | ||
<field name="available_in_pos" eval="True"/> | ||
</record> | ||
|
||
<record id="recurring_consignment.consigned_product_consignor_1_vat_20_D" model="product.product"> | ||
<field name="available_in_pos" eval="True"/> | ||
</record> | ||
|
||
<record id="consigned_product_consignor_1_vat_20_E" model="product.product"> | ||
<field name="name">My Consigned Product E (VAT 20% - Consignor 1)</field> | ||
<field name="uom_id" ref="uom.product_uom_unit"/> | ||
<field name="uom_po_id" ref="uom.product_uom_unit"/> | ||
<field name="consignor_partner_id" ref="recurring_consignment.consignor_1"/> | ||
<field name="fiscal_classification_id" ref="recurring_consignment.fiscal_classification_20_consignor_1"/> | ||
<field name="available_in_pos" eval="True"/> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
from . import account_invoice | ||
from . import pos_order | ||
from . import account_move | ||
from . import product_template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.