[11.0] stock_request_analytic:

* clean views.
 * allow to create a stock.request with no analytic account.
 * remove copy attribute in non-stored field.
 * remove non-existing field from compute method.
This commit is contained in:
Lois Rilo
2019-01-03 17:48:29 +01:00
committed by OCA-git-bot
parent 8108058ecc
commit 02199924f3
5 changed files with 19 additions and 19 deletions

View File

@@ -4,7 +4,7 @@
<odoo>
<record id="stock_request_order_form" model="ir.ui.view">
<field name="name">stock.request.order.form</field>
<field name="name">stock.request.order.form - stock_request_analytic</field>
<field name="model">stock.request.order</field>
<field name="inherit_id" ref="stock_request.stock_request_order_form"/>
<field name="arch" type="xml">
@@ -13,14 +13,14 @@
<button type="object"
name="action_view_analytic"
class="oe_stat_button"
icon="fa-truck"
icon="fa-list"
attrs="{'invisible': [('analytic_count', '=', 0)]}"
groups="analytic.group_analytic_accounting">
<field name="analytic_count" widget="statinfo"
string="analytic"/>
string="Analytic Accounts"/>
</button>
</div>
<xpath expr="//sheet/notebook/page/field[@name='stock_request_ids']/tree//field[@name='route_id']" position="after">
<xpath expr="//field[@name='stock_request_ids']/tree//field[@name='route_id']" position="after">
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
</xpath>
</field>

View File

@@ -9,7 +9,7 @@
<field name="inherit_id" ref="stock_request.view_stock_request_form"/>
<field name="arch" type="xml">
<field name="procurement_group_id" position="after">
<field name="analytic_account_id"/>
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
</field>
</field>
</record>