summaryrefslogtreecommitdiff
path: root/addons/stock_landed_costs/views
diff options
context:
space:
mode:
authorSimon Lejeune <sle@openerp.com>2019-07-12 11:41:18 +0000
committerSimon Lejeune <sle@openerp.com>2019-08-07 14:11:21 +0000
commitbc628b320d53f4bc766930d214e97baf1dc86bca (patch)
tree0abf40a525a4a26e91997e5c66ccbf21d1084bb6 /addons/stock_landed_costs/views
parentb8f963a5e901b59d3eb085e52d217e7294170a71 (diff)
[REF] stock_landed_costs: usability changes
- update label for account_journal_id - remove cost lines explanation - label of the LC name - remove former cost per unit - auto compute cost line when validating - rename former cost into original value - remove additional landed cost form the tree view - stock_landed_costs: rename cost line into additional costs - add a final value field (Lucky day: the field I had to add was already defined but not used.) - use monetary field - make weight and volume optional - journal entry visible only if posted - landed costs wording in settings - raise of no transfers are defined before validating task-59011
Diffstat (limited to 'addons/stock_landed_costs/views')
-rw-r--r--addons/stock_landed_costs/views/stock_landed_cost_views.xml22
1 files changed, 10 insertions, 12 deletions
diff --git a/addons/stock_landed_costs/views/stock_landed_cost_views.xml b/addons/stock_landed_costs/views/stock_landed_cost_views.xml
index 809ce0691c2..97c6a5f8861 100644
--- a/addons/stock_landed_costs/views/stock_landed_cost_views.xml
+++ b/addons/stock_landed_costs/views/stock_landed_cost_views.xml
@@ -20,7 +20,7 @@
attrs="{'invisible': [('state', 'not in', ['done'])]}" />
</div>
<div class="oe_title">
- <label for="name" class="oe_edit_only"/>
+ <label for="name" class="oe_edit_only" string="Landed Cost"/>
<h1>
<field name="name" placeholder="Landed Cost Name"/>
</h1>
@@ -31,15 +31,13 @@
<field name="picking_ids" widget="many2many_tags" options="{'no_create_edit': True}" domain="[('state', '=', 'done'), ('picking_type_code', '!=', 'internal')]"/>
</group>
<group>
- <field name="account_journal_id"/>
- <field name="account_move_id"/>
+ <label for="account_journal_id" string="Journal"/>
+ <field name="account_journal_id" nolabel="1"/>
+ <field name="account_move_id" attrs="{'invisible': [('account_move_id', '=', False)]}"/>
</group>
</group>
- <p class="oe_grey">
- Landed cost are computed based on the purchase unit of measure.
- </p>
<notebook>
- <page string="Cost Lines">
+ <page string="Additional Costs">
<field name="cost_lines">
<form string="Cost Lines">
<group>
@@ -89,12 +87,12 @@
<tree string="Valuation Adjustments" editable="bottom" create="0">
<field name="cost_line_id" readonly="1"/>
<field name="product_id" readonly="1"/>
- <field name="weight" readonly="1"/>
- <field name="volume" readonly="1"/>
+ <field name="weight" readonly="1" optional="hide"/>
+ <field name="volume" readonly="1" optional="hide"/>
<field name="quantity" readonly="1"/>
- <field name="former_cost_per_unit" readonly="1" widget="monetary"/>
- <field name="former_cost" readonly="1"/>
- <field name="additional_landed_cost"/>
+ <field name="currency_id" invisible="1"/>
+ <field name="former_cost" readonly="1" widget="monetary"/>
+ <field name="final_cost" readonly="1" widget="monetary"/>
</tree>
</field>
</page>