forked from OCA/product-attribute
-
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.
[IMP] product_abc_classification_sale_stock: pre-commit stuff
- Loading branch information
1 parent
58eb9e7
commit 9948e15
Showing
11 changed files
with
119 additions
and
96 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
2 changes: 1 addition & 1 deletion
2
product_abc_classification_sale_stock/demo/abc_classification_level.xml
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
9 changes: 6 additions & 3 deletions
9
product_abc_classification_sale_stock/demo/abc_classification_profile.xml
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,12 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2021 ACSONE SA/NV | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<record id="abc_classification_profile_sale_stock" model="abc.classification.profile"> | ||
<field name="name">Sale stock profile</field> | ||
<field name="profile_type">sale_stock</field> | ||
<field name="warehouse_id" ref="stock.warehouse0"/> | ||
<field name="warehouse_id" ref="stock.warehouse0" /> | ||
<field name="period">365</field> | ||
<field name="level_ids" eval="[(6,0,[ref('abc_classification_level_a'), ref('abc_classification_level_b'), ref('abc_classification_level_c')])]"/> | ||
<field | ||
name="level_ids" | ||
eval="[(6,0,[ref('abc_classification_level_a'), ref('abc_classification_level_b'), ref('abc_classification_level_c')])]" | ||
/> | ||
</record> | ||
</odoo> |
1 change: 0 additions & 1 deletion
1
product_abc_classification_sale_stock/models/abc_classification_product_level.py
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
24 changes: 14 additions & 10 deletions
24
product_abc_classification_sale_stock/security/abc_sale_stock_level_history.xml
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,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2021 ACSONE SA/NV | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
|
||
<odoo> | ||
|
||
<record model="ir.model.access" id="abc_sale_stock_level_history_access_name"> <!-- TODO acl id --> | ||
<field name="name">abc.sale_stock.level.history access name</field> <!-- TODO acl name --> | ||
<field name="model_id" ref="model_abc_sale_stock_level_history"/> | ||
<record | ||
model="ir.model.access" | ||
id="abc_sale_stock_level_history_access_name" | ||
> <!-- TODO acl id --> | ||
<field | ||
name="name" | ||
>abc.sale_stock.level.history access name</field> <!-- TODO acl name --> | ||
<field name="model_id" ref="model_abc_sale_stock_level_history" /> | ||
<!-- TODO review and adapt --> | ||
<field name="group_id" ref="base.group_user"/> | ||
<field name="perm_read" eval="1"/> | ||
<field name="perm_create" eval="0"/> | ||
<field name="perm_write" eval="0"/> | ||
<field name="perm_unlink" eval="0"/> | ||
<field name="group_id" ref="base.group_user" /> | ||
<field name="perm_read" eval="1" /> | ||
<field name="perm_create" eval="0" /> | ||
<field name="perm_write" eval="0" /> | ||
<field name="perm_unlink" eval="0" /> | ||
</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
34 changes: 21 additions & 13 deletions
34
product_abc_classification_sale_stock/views/abc_classification_product_level.xml
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
Oops, something went wrong.