product_retail_cm gestiona las ventas a minoristas

quitado archivo de backup
This commit is contained in:
santiky 2022-06-02 19:01:20 +02:00
parent 1ff451205a
commit 3dffeeba00
Signed by: snt
GPG key ID: A9FD34930EADBE71
5 changed files with 98 additions and 0 deletions

View file

@ -0,0 +1,42 @@
<?xml version="1.0"?>
<!-- Copyright (C) 2022: Criptomart (https://criptomart.net)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<odoo>
<data>
<record model="ir.ui.view" id="product_retail_cm_form_config">
<field name="name">product.template.reatil.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<field name="sale_ok" position="before">
<div>
<field name="in_distribution"/>
<label for="in_distribution" />
</div>
</field>
<!-- <field name="list_price" position="after" attrs="{'invisible': [('in_distribution', '=', False)]}">
<field name="retail_margin" attrs="{'invisible': [('in_distribution', '=', False)]}"/>
</field> -->
</field>
</record>
<!--Filter for products in distribution -->
<record id="view_product_search_form_inherit_dsitribution" model="ir.ui.view">
<field name="name">view.product.search.form.inherit.distribution</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='services']" position="before">
<separator/>
<filter string="En Distribución"
name="products_dsitribution_filter"
domain="[('in_distribution', '=', True)]"
help="Products sold to retailers."
icon="terp-project"
/>
</xpath>
</field>
</record>
</data>
</odoo>