create app order entry

This commit is contained in:
Wilson Gomez 2023-01-23 09:01:06 -05:00
parent 17793e89b9
commit 4d92cbc55f
6 changed files with 52 additions and 0 deletions

View File

@ -12,6 +12,7 @@ def register():
sale.AppSaleOrder,
sale.AppTakeOrder,
sale.AppOrderViewer,
sale.AppOrderEntry,
sale.AppSelfServiceSale,
dash.DashApp,
module='dash_sale', type_='model')

View File

@ -15,6 +15,7 @@ class DashApp(metaclass=PoolMeta):
'dash.app.take_order',
'dash.app.order_viewer',
'dash.app.self_service_sale',
'dash.app.order_entry',
])
return origins
@ -27,5 +28,6 @@ class DashApp(metaclass=PoolMeta):
('take_order', 'Take Order'),
('order_viewer', 'Order Viewer'),
('self_service_sale', 'Self-Service Sale'),
('order_entry', 'Order Entry'),
])
return options

View File

@ -588,3 +588,8 @@ class AppSaleOrder(DashAppBase):
class AppSelfServiceSale(DashAppBase):
'App Self Service Sale'
__name__ = 'dash.app.self_service_sale'
class AppOrderEntry(DashAppBase):
'App Order Entry'
__name__ = 'dash.app.order_entry'

View File

@ -111,5 +111,32 @@ this repository contains the full copyright notices and license terms. -->
</record>
<menuitem parent="dash.menu_configuration" sequence="60"
action="act_dash_app_self_service_form" id="menu_dash_app_self_service_form"/>
<record model="ir.ui.view" id="dash_app_order_entry_view_form">
<field name="model">dash.app.order_entry</field>
<field name="type">form</field>
<field name="name">app_order_entry_form</field>
</record>
<record model="ir.ui.view" id="dash_app_order_entry_view_tree">
<field name="model">dash.app.order_entry</field>
<field name="type">tree</field>
<field name="name">app_order_entry_tree</field>
</record>
<record model="ir.action.act_window" id="act_dash_app_order_entry_form">
<field name="name">App Order Entry</field>
<field name="res_model">dash.app.order_entry</field>
</record>
<record model="ir.action.act_window.view" id="act_dash_app_order_entry_form_view1">
<field name="sequence" eval="1"/>
<field name="view" ref="dash_app_order_entry_view_tree"/>
<field name="act_window" ref="act_dash_app_order_entry_form"/>
</record>
<record model="ir.action.act_window.view" id="act_dash_app_order_entry_form_view2">
<field name="sequence" eval="2"/>
<field name="view" ref="dash_app_order_entry_view_form"/>
<field name="act_window" ref="act_dash_app_order_entry_form"/>
</record>
<menuitem parent="dash.menu_configuration" sequence="60"
action="act_dash_app_order_entry_form" id="menu_dash_app_order_entry_form"/>
</data>
</tryton>

View File

@ -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>

View File

@ -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>