add group products in print order
This commit is contained in:
parent
38a30e55e2
commit
33c4c95df6
|
@ -16,5 +16,6 @@ def register():
|
|||
sale.AppSelfServiceSale,
|
||||
sale.AppSaleTurn,
|
||||
sale.AppOrderNotification,
|
||||
sale.AppSaleAudit,
|
||||
dash.DashApp,
|
||||
module='dash_sale', type_='model')
|
||||
|
|
2
dash.py
2
dash.py
|
@ -18,6 +18,7 @@ class DashApp(metaclass=PoolMeta):
|
|||
'dash.app.sale_call_center',
|
||||
'dash.app.sale_turn',
|
||||
'dash.app.order_notification',
|
||||
'dash.app.sale_audit',
|
||||
])
|
||||
return origins
|
||||
|
||||
|
@ -33,5 +34,6 @@ class DashApp(metaclass=PoolMeta):
|
|||
('sale_call_center', 'Sale Call Center'),
|
||||
('sale_turn', 'Sale Turn'),
|
||||
('order_notification', 'Order Notification'),
|
||||
('sale_audit', 'Sale Audit'),
|
||||
])
|
||||
return options
|
||||
|
|
5
sale.py
5
sale.py
|
@ -992,3 +992,8 @@ class AppSaleTurn(DashAppBase):
|
|||
class AppOrderNotification(DashAppBase):
|
||||
'App Order Notification'
|
||||
__name__ = 'dash.app.order_notification'
|
||||
|
||||
|
||||
class AppSaleAudit(DashAppBase):
|
||||
'App Sale Audit'
|
||||
__name__ = 'dash.app.sale_audit'
|
28
sale.xml
28
sale.xml
|
@ -138,5 +138,33 @@ this repository contains the full copyright notices and license terms. -->
|
|||
</record>
|
||||
<menuitem parent="dash.menu_configuration" sequence="60"
|
||||
action="act_dash_app_sale_call_center_form" id="menu_dash_app_sale_call_center_form"/>
|
||||
|
||||
<record model="ir.ui.view" id="dash_app_sale_audit_view_form">
|
||||
<field name="model">dash.app.sale_audit</field>
|
||||
<field name="type">form</field>
|
||||
<field name="name">app_sale_audit_form</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="dash_app_sale_audit_view_tree">
|
||||
<field name="model">dash.app.sale_audit</field>
|
||||
<field name="type">tree</field>
|
||||
<field name="name">app_sale_audit_tree</field>
|
||||
</record>
|
||||
<record model="ir.action.act_window" id="act_dash_app_sale_audit_form">
|
||||
<field name="name">App Sale Audit</field>
|
||||
<field name="res_model">dash.app.sale_audit</field>
|
||||
</record>
|
||||
<record model="ir.action.act_window.view" id="act_dash_app_sale_audit_form_view1">
|
||||
<field name="sequence" eval="1"/>
|
||||
<field name="view" ref="dash_app_sale_audit_view_tree"/>
|
||||
<field name="act_window" ref="act_dash_app_sale_audit_form"/>
|
||||
</record>
|
||||
<record model="ir.action.act_window.view" id="act_dash_app_sale_audit_form_view2">
|
||||
<field name="sequence" eval="2"/>
|
||||
<field name="view" ref="dash_app_sale_audit_view_form"/>
|
||||
<field name="act_window" ref="act_dash_app_sale_audit_form"/>
|
||||
</record>
|
||||
<menuitem parent="dash.menu_configuration" sequence="70"
|
||||
action="act_dash_app_sale_audit_form" id="menu_dash_app_sale_audit_form"/>
|
||||
|
||||
</data>
|
||||
</tryton>
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part sale_shop module for Tryton.
|
||||
The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
|
||||
<form>
|
||||
<label name="company"/>
|
||||
<field name="company" widget="selection"/>
|
||||
<label name="icon"/>
|
||||
<field name="icon"/>
|
||||
<label name="kind"/>
|
||||
<field name="kind"/>
|
||||
</form>
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part sale_shop module for Tryton.
|
||||
The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
|
||||
<tree >
|
||||
<field name="company"/>
|
||||
</tree>
|
Loading…
Reference in New Issue