forked from OCA/sale-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac64654
commit 7a521f5
Showing
18 changed files
with
928 additions
and
633 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- | ||
Copyright 2014-2021 Akretion France (http://www.akretion.com/) | ||
@author Alexis de Lattre <[email protected]> | ||
Copyright 2016-2021 Sodexis | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
--> | ||
|
||
<odoo noupdate="1"> | ||
|
||
<record id="route_warehouse0_rental" model="stock.location.route"> | ||
<field name="name">Rent</field> | ||
<field name="sequence">100</field> | ||
<field name="warehouse_selectable" eval="True"/> | ||
<field name="product_selectable" eval="False"/> | ||
<field name="warehouse_selectable" eval="True" /> | ||
<field name="product_selectable" eval="False" /> | ||
</record> | ||
|
||
<record id="route_warehouse0_sell_rented_product" model="stock.location.route"> | ||
|
@@ -21,7 +20,7 @@ | |
</record> | ||
|
||
<record id="stock.warehouse0" model="stock.warehouse"> | ||
<field name="rental_allowed" eval="True"/> | ||
<field name="rental_allowed" 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,56 +1,54 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- | ||
Copyright 2014-2021 Akretion France (http://www.akretion.com/) | ||
@author Alexis de Lattre <[email protected]> | ||
Copyright 2016-2021 Sodexis | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
--> | ||
|
||
|
||
<odoo noupdate="1"> | ||
|
||
<record id="rent_consu_delivery_01" model="product.product"> | ||
<field name="name">Rental of one Three-Seat Sofa</field> | ||
<field name="default_code">RENT-FURN_8999</field> | ||
<field name="categ_id" ref="product.product_category_5"/> | ||
<field name="sale_ok" eval="True"/> | ||
<field name="purchase_ok" eval="False"/> | ||
<field name="categ_id" ref="product.product_category_5" /> | ||
<field name="sale_ok" eval="True" /> | ||
<field name="purchase_ok" eval="False" /> | ||
<field name="list_price">5</field> | ||
<field name="type">service</field> | ||
<field name="uom_id" ref="uom.product_uom_day"/> | ||
<field name="uom_po_id" ref="uom.product_uom_day"/> | ||
<field name="must_have_dates" eval="True"/> | ||
<field name="rented_product_id" ref="product.consu_delivery_01"/> | ||
<field name="uom_id" ref="uom.product_uom_day" /> | ||
<field name="uom_po_id" ref="uom.product_uom_day" /> | ||
<field name="must_have_dates" eval="True" /> | ||
<field name="rented_product_id" ref="product.consu_delivery_01" /> | ||
<!-- The 'stock' module sets it as type = 'product' | ||
This XMLID is misleading --> | ||
</record> | ||
|
||
<record id="rent_product_product_20" model="product.product"> | ||
<field name="name">Rental of one Flipover</field> | ||
<field name="default_code">RENT-FURN_9001</field> | ||
<field name="categ_id" ref="product.product_category_5"/> | ||
<field name="sale_ok" eval="True"/> | ||
<field name="purchase_ok" eval="False"/> | ||
<field name="categ_id" ref="product.product_category_5" /> | ||
<field name="sale_ok" eval="True" /> | ||
<field name="purchase_ok" eval="False" /> | ||
<field name="list_price">4</field> | ||
<field name="type">service</field> | ||
<field name="uom_id" ref="uom.product_uom_day"/> | ||
<field name="uom_po_id" ref="uom.product_uom_day"/> | ||
<field name="must_have_dates" eval="True"/> | ||
<field name="rented_product_id" ref="product.product_product_20"/> | ||
<field name="uom_id" ref="uom.product_uom_day" /> | ||
<field name="uom_po_id" ref="uom.product_uom_day" /> | ||
<field name="must_have_dates" eval="True" /> | ||
<field name="rented_product_id" ref="product.product_product_20" /> | ||
</record> | ||
|
||
<record id="rent_product_product_25" model="product.product"> | ||
<field name="name">Rental of one Acoustic Bloc Screens</field> | ||
<field name="default_code">RENT-FURN_6666</field> | ||
<field name="categ_id" ref="product.product_category_5"/> | ||
<field name="sale_ok" eval="True"/> | ||
<field name="purchase_ok" eval="False"/> | ||
<field name="categ_id" ref="product.product_category_5" /> | ||
<field name="sale_ok" eval="True" /> | ||
<field name="purchase_ok" eval="False" /> | ||
<field name="list_price">6</field> | ||
<field name="type">service</field> | ||
<field name="uom_id" ref="uom.product_uom_day"/> | ||
<field name="uom_po_id" ref="uom.product_uom_day"/> | ||
<field name="must_have_dates" eval="True"/> | ||
<field name="rented_product_id" ref="product.product_product_25"/> | ||
<field name="uom_id" ref="uom.product_uom_day" /> | ||
<field name="uom_po_id" ref="uom.product_uom_day" /> | ||
<field name="must_have_dates" eval="True" /> | ||
<field name="rented_product_id" ref="product.product_product_25" /> | ||
</record> | ||
|
||
<!-- Create inventory on Rental In for these products --> | ||
|
@@ -59,7 +57,11 @@ | |
</record> | ||
|
||
<function model="stock.inventory" name="create_demo_and_validate"> | ||
<function eval="[[('id', '=', ref('rental_inventory'))]]" model="stock.inventory" name="search"/> | ||
<function | ||
eval="[[('id', '=', ref('rental_inventory'))]]" | ||
model="stock.inventory" | ||
name="search" | ||
/> | ||
</function> | ||
|
||
|
||
|
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
Oops, something went wrong.