Compare commits
1 Commits
8.0-improv
...
fix_partne
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
145ab11996 |
@@ -309,6 +309,12 @@ module -->
|
||||
<field name="inherit_id" ref="account.partner_view_button_journal_item_count"/>
|
||||
<field name="arch" type="xml">
|
||||
<button name="%(account.action_account_moves_all_tree)d" position="after">
|
||||
<button name="show_receivable_account" type="object"
|
||||
attrs="{'invisible': [('customer', '=', False)]}"
|
||||
icon="fa-list" class="oe_stat_button">
|
||||
<field string="Journal Items" name="journal_item_count"
|
||||
widget="statinfo"/>
|
||||
</button>
|
||||
<button name="show_payable_account" type="object"
|
||||
attrs="{'invisible': [('supplier', '=', False)]}"
|
||||
icon="fa-list" class="oe_stat_button">
|
||||
@@ -319,9 +325,6 @@ module -->
|
||||
<button name="%(account.action_account_moves_all_tree)d" position="attributes">
|
||||
<attribute name="invisible">True</attribute>
|
||||
</button>
|
||||
<button name="%(account.action_account_moves_all_tree)d" position="after">
|
||||
<button type="object" class="oe_stat_button" name="show_receivable_account" icon="fa-list" attrs="{'invisible': [('customer', '=', False)]}"/>
|
||||
</button>
|
||||
<field name="journal_item_count" position="attributes">
|
||||
<attribute name="string">Receivable Account</attribute>
|
||||
</field>
|
||||
|
||||
@@ -7,45 +7,8 @@
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<record id="product_attribute_view_form" model="ir.ui.view">
|
||||
<field name="model">product.attribute</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Product Attribute">
|
||||
<sheet>
|
||||
<div class="oe_title" style="width: 390px;">
|
||||
<label class="oe_edit_only" for="name" string="Product Name"/>
|
||||
<h1><field name="name" class="oe_inline"/></h1>
|
||||
</div>
|
||||
<group>
|
||||
<field name="value_ids" colspan="4" nolabel="1"
|
||||
context="{'hide_attribute_id': True}"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="attribute_tree_view" model="ir.ui.view">
|
||||
<field name="model">product.attribute</field>
|
||||
<field name="inherit_id" ref="product.attribute_tree_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//tree" position="attributes">
|
||||
<attribute name="editable"></attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="variants_tree_view" model="ir.ui.view">
|
||||
<field name="model">product.attribute.value</field>
|
||||
<field name="inherit_id" ref="product.variants_tree_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="attribute_id" position="attributes">
|
||||
<attribute name="invisible">context.get('hide_attribute_id')</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product.attribute_action" model="ir.actions.act_window">
|
||||
<field name="res_model">product.attribute</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
"bin": [],
|
||||
},
|
||||
"depends": [
|
||||
"attribute_usability",
|
||||
"product_variant_inactive",
|
||||
],
|
||||
"data": [
|
||||
"views/product_view.xml",
|
||||
"views/product_attribute_view.xml",
|
||||
],
|
||||
"demo": [
|
||||
],
|
||||
|
||||
44
product_variant_usability/views/product_attribute_view.xml
Normal file
44
product_variant_usability/views/product_attribute_view.xml
Normal file
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="product_attribute_view_form" model="ir.ui.view">
|
||||
<field name="model">product.attribute</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Product Attribute">
|
||||
<sheet>
|
||||
<div class="oe_title" style="width: 390px;">
|
||||
<label class="oe_edit_only" for="name" string="Product Name"/>
|
||||
<h1><field name="name" class="oe_inline"/></h1>
|
||||
</div>
|
||||
<group>
|
||||
<field name="code"/>
|
||||
<field name="value_ids" colspan="4" nolabel="1">
|
||||
<tree editable="bottom">
|
||||
<field name="name"/>
|
||||
<field name="code"/>
|
||||
<field name="comment"/>
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="attribute_tree_view" model="ir.ui.view">
|
||||
<field name="model">product.attribute</field>
|
||||
<field name="inherit_id" ref="product.attribute_tree_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//tree" position="attributes">
|
||||
<attribute name="editable"></attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product.attribute_action" model="ir.actions.act_window">
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user