LaOsaCoop/Odoo16#12 migration pos_balance_multishop + pos_balance_epelsa
This commit is contained in:
parent
46ad866011
commit
7b37ed92a1
20 changed files with 1328 additions and 2 deletions
53
pos_balance_multishop/views/product_view.xml
Normal file
53
pos_balance_multishop/views/product_view.xml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<record model="ir.ui.view" id="product_balace_code_form_view">
|
||||
<field name="name">product.balance.code.form</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="product.product_template_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<page name="general_information" position="after">
|
||||
<page string="Balance">
|
||||
<group>
|
||||
<field name="balance_type"/>
|
||||
<field name="balance_name"/>
|
||||
<field name="balance_nomenclature"/>
|
||||
<field name="balance_rule" domain="['|',('type','=','price'),('type','=','weight')]"/>
|
||||
<field name="not_weighed"/>
|
||||
<field name="tare"/>
|
||||
</group>
|
||||
<field name="balance_code_ids" nolabel="1">
|
||||
<form string="Product Balance Codes">
|
||||
<group>
|
||||
<field name="key"/>
|
||||
<field name="table"/>
|
||||
<field name="shop_id"/>
|
||||
</group>
|
||||
</form>
|
||||
<tree string="Product Balance Codes" editable="top">
|
||||
<field name="key"/>
|
||||
<field name="table"/>
|
||||
<field name="shop_id" />
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
</page>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_update_balance_codes_menu" model="ir.actions.server">
|
||||
<field name="name">Update Balances</field>
|
||||
<field name="type">ir.actions.server</field>
|
||||
<field name="model_id" ref="product.model_product_template" />
|
||||
<field name="binding_model_id" ref="product.model_product_template"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
if records:
|
||||
records.update_codes()
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
71
pos_balance_multishop/views/sale_view.xml
Normal file
71
pos_balance_multishop/views/sale_view.xml
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="view_shop_form_balance">
|
||||
<field name="name">balance.sale.shop.form</field>
|
||||
<field name="model">balance.sale.shop</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<sheet string="Sale_shop">
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name="balance_ids" />
|
||||
</group>
|
||||
</sheet>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="sale_balance_form_view">
|
||||
<field name="name">sale.balance.form</field>
|
||||
<field name="model">sale.balance</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<group>
|
||||
<form string="Balances">
|
||||
<group>
|
||||
<field name="name" />
|
||||
<field name="shop_id"/>
|
||||
<field name="network" />
|
||||
<field name="model_id" />
|
||||
<field name="ip" />
|
||||
<field name="port" />
|
||||
</group>
|
||||
</form>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="sale_balance_tree_view">
|
||||
<field name="name">sale.balance.form</field>
|
||||
<field name="model">sale.balance</field>
|
||||
<field name="type">tree</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Balances" editable="top">
|
||||
<field name="name" />
|
||||
<field name="network" />
|
||||
<field name="model_id" />
|
||||
<field name="ip" />
|
||||
<field name="port" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_sale_tree" model="ir.actions.act_window">
|
||||
<field name="name">Sale balance shop</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">balance.sale.shop</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" eval="False"/>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
Click to create balance shop.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem action="action_sale_tree" id="menu_sale_tree"
|
||||
parent="point_of_sale.menu_point_config_product" sequence="1"
|
||||
/>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue