Skip to content

Commit

Permalink
[IMP] rep_cost: addlast cost update on tree view
Browse files Browse the repository at this point in the history
closes #415

X-original-commit: c1fa37f
Signed-off-by: Juan José Scarafía <[email protected]>
Signed-off-by: Nicolas Mac Rouillon <[email protected]>
  • Loading branch information
jjscarafia committed Nov 29, 2021
1 parent 2d97460 commit 0febbed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions product_replenishment_cost/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
'name': 'Replenishment Cost',
<<<<<<< HEAD
'version': "15.0.1.0.0",
=======
'version': '13.0.1.12.0',
>>>>>>> 3e32dbcb... temp
'author': "ADHOC SA, Odoo Community Association (OCA)",
'license': 'AGPL-3',
'category': 'Products',
Expand Down
15 changes: 12 additions & 3 deletions product_replenishment_cost/views/product_template_views.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<!-- FORM VIEW -->
<record id="product_template_form_view" model="ir.ui.view">
<field name="name">product.cost.currency.form</field>
<field name="model">product.template</field>
Expand Down Expand Up @@ -36,9 +35,8 @@
</field>
</record>

<!-- search VIEW -->
<record id="product_template_search_view" model="ir.ui.view">
<field name="name">product_replenishment_rule.filter</field>
<field name="name">product.template.filter</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view"/>
<field name="arch" type="xml">
Expand All @@ -49,4 +47,15 @@
</field>
</record>

<record id="product_template_tree_view" model="ir.ui.view">
<field name="name">product.template.tree</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_tree_view"/>
<field name="arch" type="xml">
<field name="standard_price" position="after">
<field name="replenishment_cost_last_update" optional="hide"/>
</field>
</field>
</record>

</odoo>

0 comments on commit 0febbed

Please sign in to comment.