[FIX] product_sale_price_from_pricelist: Actualizar tests para Odoo 18
- Cambiar parámetro qty= a quantity= en llamadas a _compute_price_rule - Eliminar type/detailed_type de product.product creates - Añadir campo name a purchase.order.line - Agregar método _compute_theoritical_price en template - Crear helpers para leer precios teóricos desde variante - Corregir variables no usadas y nombres indefinidos
This commit is contained in:
parent
fd83d31188
commit
55811d54b1
28 changed files with 1569 additions and 327 deletions
39
product_origin/views/product_template.xml
Normal file
39
product_origin/views/product_template.xml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2018 ACSONE SA/NV
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="product_template_form_view">
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_only_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group[@name='group_lots_and_weight']" position="after">
|
||||
<group
|
||||
string="Origin"
|
||||
name="group_origin"
|
||||
invisible="product_variant_count > 1"
|
||||
>
|
||||
<field name="country_id" />
|
||||
<field name="state_id_domain" invisible="1" />
|
||||
<field name="state_id" domain="state_id_domain" />
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="product_template_search_view">
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_search_view" />
|
||||
<field name="arch" type="xml">
|
||||
<filter name="favorites" position="before">
|
||||
<field name="country_id" />
|
||||
</filter>
|
||||
<filter name="categ_id" position="after">
|
||||
<filter
|
||||
string="Country of Origin"
|
||||
name="country_id"
|
||||
context="{'group_by':'country_id'}"
|
||||
/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue