-
-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG][12.0] product_profile_example: Migration to 12.0
- Loading branch information
Showing
11 changed files
with
251 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ See its description. | |
Configuration | ||
============= | ||
|
||
Optionnaly: | ||
Optionally: | ||
|
||
* Settings > Configuration > General Settings: check 'Display fields in Profile' and apply | ||
(only if you want display hidden fields set by profile git ) | ||
|
@@ -39,6 +39,7 @@ Contributors | |
------------ | ||
|
||
* David BEAL <[email protected]> | ||
* Kevin KHAO <[email protected]> | ||
|
||
Maintainer | ||
---------- | ||
|
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.
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,12 @@ | ||
<?xml version="1.0"?> | ||
<odoo noupdate="1"> | ||
|
||
<record id="mrp.product_product_computer_desk_bolt" model="product.product"> | ||
<field name="profile_id" ref="profile_consu"/> | ||
</record> | ||
|
||
<record id="product.product_product_3" model="product.product"> | ||
<field name="profile_id" ref="profile_manuf"/> | ||
</record> | ||
|
||
</odoo> |
This file was deleted.
Oops, something went wrong.
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,57 @@ | ||
<?xml version="1.0"?> | ||
<odoo> | ||
|
||
<record id="profile_own" model="product.profile"> | ||
<field name="name">My Own Type Saleable</field> | ||
<field name="type">product</field> | ||
<field name="sale_ok">True</field> | ||
<field name="purchase_ok">False</field> | ||
<field name="profile_default_categ_id" ref="product.product_category_all"/> | ||
<field name="available_in_pos">True</field> | ||
<field name="profile_default_route_ids" eval="[(6, 0, [ref('purchase_stock.route_warehouse0_buy')])]"/> | ||
<field name="explanation">- My own type | ||
- Saleable product | ||
- Not purchasable</field> | ||
</record> | ||
|
||
<record id="profile_complete" model="product.profile"> | ||
<field name="name">Complete Profile</field> | ||
<field name="type">product</field> | ||
<field name="sale_ok">True</field> | ||
<field name="purchase_ok">True</field> | ||
<field name="profile_default_categ_id" ref="product.product_category_all"/> | ||
<field name="available_in_pos">True</field> | ||
<field name="profile_default_route_ids" eval="[(6, 0, [ref('mrp.route_warehouse0_manufacture'),ref('stock.route_warehouse0_mto'),ref('purchase_stock.route_warehouse0_buy')])]"/> | ||
<field name="explanation">- Stockable product | ||
- Saleable | ||
- Purchasable | ||
- Available in POS | ||
- MTO | ||
- Manufacturable</field> | ||
</record> | ||
|
||
<record id="profile_manuf" model="product.profile"> | ||
<field name="name">Manufacturing TO</field> | ||
<field name="type">product</field> | ||
<field name="sale_ok">True</field> | ||
<field name="purchase_ok">False</field> | ||
<field name="profile_default_categ_id" ref="product.product_category_5"/> | ||
<field name="available_in_pos">True</field> | ||
<field name="profile_default_route_ids" eval="[(6, 0, [ref('mrp.route_warehouse0_manufacture'),ref('stock.route_warehouse0_mto')])]"/> | ||
<field name="explanation">- Manufacturing Product | ||
- Make to order product | ||
- Display on POS</field> | ||
</record> | ||
|
||
<record id="profile_consu" model="product.profile"> | ||
<field name="name">Consumable</field> | ||
<field name="type">consu</field> | ||
<field name="sale_ok">True</field> | ||
<field name="purchase_ok">False</field> | ||
<field name="profile_default_categ_id" ref="product.product_category_all"/> | ||
<field name="available_in_pos">False</field> | ||
<field name="explanation">Consumable</field> | ||
</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,4 +1,4 @@ | ||
# © 2015 David BEAL @ Akretion | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import profile | ||
from . import product_profile |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.