Skip to content

Commit

Permalink
[FIX] Bad estructure
Browse files Browse the repository at this point in the history
  • Loading branch information
jcadhoc committed Jul 5, 2023
1 parent e8136bd commit dc7400c
Show file tree
Hide file tree
Showing 3 changed files with 303 additions and 73 deletions.
3 changes: 2 additions & 1 deletion product_ux/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Product UX',
'version': "16.0.1.0.0",
'version': "16.0.2.0.0",
'category': 'Products',
'sequence': 14,
'summary': '',
Expand All @@ -37,6 +37,7 @@
'views/product_pricelist_item_view.xml',
'views/product_pricelist_view.xml',
'views/uom_uom_views.xml',
'report/ir.action.reports.xml',
'report/picking_templates.xml',
],
'demo': [
Expand Down
36 changes: 36 additions & 0 deletions product_ux/report/ir.action.reports.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="label_10x15" model="report.paperformat">
<field name="name">Etiqueta de despacho(10x15)</field>
<field name="default" eval="True"/>
<field name="format">custom</field>
<field name="page_height">150</field>
<field name="page_width">100</field>
<field name="orientation">Portrait</field>
<field name="margin_top">5</field>
<field name="margin_bottom">5</field>
<field name="margin_left">5</field>
<field name="margin_right">5</field>
<field name="header_line" eval="False"/>
<field name="header_spacing">20</field>
<field name="dpi">90</field>
</record>

<record id="action_custom_label_transfer_template_zpl" model="ir.actions.report">
<field name="name">Etiqueta de despacho (ZPL)</field>
<field name="model">stock.picking</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">product_ux.custom_label_transfer_template_view_zpl</field>
<field name="binding_model_id" ref="stock.model_stock_picking"/>
</record>

<record id="action_custom_label_transfer_template_view_pdf" model="ir.actions.report">
<field name="name">Etiqueta de despacho (PDF)</field>
<field name="model">stock.picking</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">product_ux.custom_label_transfer_template_view_pdf</field>
<field name="binding_model_id" ref="stock.model_stock_picking"/>
<field name="paperformat_id" ref="product_ux.label_10x15"/>
</record>
</odoo>

0 comments on commit dc7400c

Please sign in to comment.