mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] mrp_bom_attribute_match_duplicate_kit: add group access
This commit is contained in:
@@ -7,7 +7,7 @@ BOM Attribute Match Duplicate Kit
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:799dde4fcb103960a4af12b6bd212c0913ffd0f478293ff3c0fd559245ecae1a
|
||||
!! source digest: sha256:579e72588e9246276b56f9620c385563a09215a87f10d04a0cd038bad0745153
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
||||
@@ -45,6 +45,7 @@ The use case is that customer sells the same product with two different names, p
|
||||
Usage
|
||||
=====
|
||||
|
||||
* In user, enable "Can duplicate with kit" access right
|
||||
* Open "Product 1" with variants
|
||||
* Use server action: "Duplicate with attribute match kit"
|
||||
* A wizard opens up with field "New product template name"
|
||||
|
||||
@@ -12,8 +12,12 @@
|
||||
"license": "AGPL-3",
|
||||
"website": "https://github.com/OCA/manufacture",
|
||||
"data": [
|
||||
"security/security.xml",
|
||||
"security/ir.model.access.csv",
|
||||
"views/product_template_views.xml",
|
||||
"wizard/product_template_kit_wizard.xml",
|
||||
],
|
||||
"demo": [
|
||||
"demo/res_users_demo.xml",
|
||||
],
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="base.user_admin" model="res.users">
|
||||
<field
|
||||
name="groups_id"
|
||||
eval="[(4, ref('mrp_bom_attribute_match_duplicate_kit.group_mrp_bom_duplicate_access'))]"
|
||||
/>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -1,3 +1,4 @@
|
||||
* In user, enable "Can duplicate with kit" access right
|
||||
* Open "Product 1" with variants
|
||||
* Use server action: "Duplicate with attribute match kit"
|
||||
* A wizard opens up with field "New product template name"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_product_template_kit_wizard,access.product.template.kit.wizard,model_product_template_kit_wizard,mrp.group_mrp_user,1,1,1,1
|
||||
access_product_template_kit_wizard,access.product.template.kit.wizard,model_product_template_kit_wizard,mrp_bom_attribute_match_duplicate_kit.group_mrp_bom_duplicate_access,1,1,1,1
|
||||
|
||||
|
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="group_mrp_bom_duplicate_access" model="res.groups">
|
||||
<field name="name">Can duplicate with kit</field>
|
||||
<field name="implied_ids" eval="[(4, ref('mrp.group_mrp_user'))]" />
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -367,7 +367,7 @@ ul.auto-toc {
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:799dde4fcb103960a4af12b6bd212c0913ffd0f478293ff3c0fd559245ecae1a
|
||||
!! source digest: sha256:579e72588e9246276b56f9620c385563a09215a87f10d04a0cd038bad0745153
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/manufacture/tree/14.0/mrp_bom_attribute_match_duplicate_kit"><img alt="OCA/manufacture" src="https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/manufacture-14-0/manufacture-14-0-mrp_bom_attribute_match_duplicate_kit"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module allows to duplicate a product with variants, at the same time creating a BoM with type “Kit” for the new product mapping variants of the original product.</p>
|
||||
@@ -393,6 +393,7 @@ ul.auto-toc {
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
|
||||
<ul class="simple">
|
||||
<li>In user, enable “Can duplicate with kit” access right</li>
|
||||
<li>Open “Product 1” with variants</li>
|
||||
<li>Use server action: “Duplicate with attribute match kit”</li>
|
||||
<li>A wizard opens up with field “New product template name”</li>
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
<field name="name">Duplicate with attribute match kit</field>
|
||||
<field name="model_id" ref="product.model_product_template" />
|
||||
<field name="binding_model_id" ref="product.model_product_template" />
|
||||
<field
|
||||
name="groups_id"
|
||||
eval="[(4, ref('mrp_bom_attribute_match_duplicate_kit.group_mrp_bom_duplicate_access'))]"
|
||||
/>
|
||||
<field name="binding_view_types">form</field>
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
|
||||
Reference in New Issue
Block a user