Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
Merge c069fc1 into 151e3b5
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Dupont committed Jul 9, 2018
2 parents 151e3b5 + c069fc1 commit adb42f9
Show file tree
Hide file tree
Showing 3 changed files with 485 additions and 2 deletions.
36 changes: 36 additions & 0 deletions grap_qweb_report/data/product_print_category.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,40 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
(4, ref('product.field_product_product_list_price'))]" />
</record>

<record id="category_label_small_square" model="product.print.category">
<field name="name">Carré - 30*30mm</field>
<field name="qweb_view_id" ref="qweb_template_label_small_square" />
<field name="field_ids" eval="[
(4, ref('product.field_product_product_name')),
(4, ref('product.field_product_product_ean13')),
(4, ref('sale_food.field_product_product_label_ids')),
(4, ref('grap_qweb_report.field_product_product_pricetag_uom_id')),
(4, ref('grap_qweb_report.field_product_product_pricetag_type_id')),
(4, ref('product.field_product_product_list_price'))]" />
</record>

<record id="category_label_middle_square" model="product.print.category">
<field name="name">Carré - 40x36mm</field>
<field name="qweb_view_id" ref="qweb_template_label_middle_square" />
<field name="field_ids" eval="[
(4, ref('product.field_product_product_name')),
(4, ref('product.field_product_product_ean13')),
(4, ref('sale_food.field_product_product_label_ids')),
(4, ref('grap_qweb_report.field_product_product_pricetag_uom_id')),
(4, ref('grap_qweb_report.field_product_product_pricetag_type_id')),
(4, ref('product.field_product_product_list_price'))]" />
</record>

<record id="category_label_counter" model="product.print.category">
<field name="name">Comptoir - 72*123mm</field>
<field name="qweb_view_id" ref="qweb_template_label_counter" />
<field name="field_ids" eval="[
(4, ref('product.field_product_product_name')),
(4, ref('product.field_product_product_ean13')),
(4, ref('sale_food.field_product_product_label_ids')),
(4, ref('grap_qweb_report.field_product_product_pricetag_uom_id')),
(4, ref('grap_qweb_report.field_product_product_pricetag_type_id')),
(4, ref('product.field_product_product_list_price'))]" />
</record>

</data></openerp>
12 changes: 12 additions & 0 deletions grap_qweb_report/demo/product_print_category.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,16 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
]" />
</record>

<record id="category_label_small_square" model="product.print.category">
<field name="product_ids" eval="[
(4, ref('product.product_product_20')),
]" />
</record>

<record id="category_label_counter" model="product.print.category">
<field name="product_ids" eval="[
(4, ref('product.product_product_21')),
]" />
</record>

</data></openerp>
Loading

0 comments on commit adb42f9

Please sign in to comment.