产品,排版
This commit is contained in:
@@ -1,12 +1,51 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="view_product_template_inherit_sps_form" model="ir.ui.view">
|
||||
<field name="name">product.template.inherit.sps.form</field>
|
||||
<!-- 修复产品模板表单响应式布局 -->
|
||||
<record id="view_product_template_form_responsive_fix" model="ir.ui.view">
|
||||
<field name="name">product.template.form.responsive.fix</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="product.product_template_only_form_view"/>
|
||||
<field name="inherit_id" ref="product.product_template_form_view"/>
|
||||
<field name="priority">99</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='uom_po_id']" position="after">
|
||||
<field name="is_fixed_assets"/>
|
||||
<!-- 完全替换基本信息标签页的group结构,采用三层嵌套 -->
|
||||
<xpath expr="//page[@name='general_information']/group" position="replace">
|
||||
<group>
|
||||
<group col="2">
|
||||
<group name="group_general">
|
||||
<field name="active" invisible="1"/>
|
||||
<field name="detailed_type"/>
|
||||
<field name="product_tooltip" string="" class="fst-italic text-muted" invisible="type == 'service' and not sale_ok"/>
|
||||
<field name="uom_id" groups="uom.group_uom" options="{'no_create': True}"/>
|
||||
<field name="uom_po_id" groups="uom.group_uom" options="{'no_create': True}"/>
|
||||
<label for="is_fixed_assets" string="是否固定资产"/>
|
||||
<field name="is_fixed_assets" nolabel="1"/>
|
||||
</group>
|
||||
<group name="group_standard_price">
|
||||
<label for="list_price"/>
|
||||
<div name="pricing" class="o_row">
|
||||
<field name="list_price" class="oe_inline" widget='monetary'
|
||||
options="{'currency_field': 'currency_id', 'field_digits': True}"/>
|
||||
</div>
|
||||
<label for="standard_price" invisible="id and product_variant_count != 1 and not is_product_variant"/>
|
||||
<div name="standard_price_uom" invisible="id and product_variant_count != 1 and not is_product_variant">
|
||||
<field name="standard_price" class="oe_inline" widget='monetary' options="{'currency_field': 'cost_currency_id', 'field_digits': True}"/>
|
||||
<span groups="uom.group_uom" >per
|
||||
<field name="uom_name" class="oe_inline"/>
|
||||
</span>
|
||||
</div>
|
||||
<field name="categ_id" string="Product Category"/>
|
||||
<field name="product_tag_ids" widget="many2many_tags" context="{'product_template_id': id}"/>
|
||||
<button name="%(product.product_tag_action)d" icon="oi-arrow-right" type="action" class="btn-link ps-0" colspan="2" string="Configure tags"/>
|
||||
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
<field name="cost_currency_id" invisible="1"/>
|
||||
<field name="product_variant_id" invisible="1"/>
|
||||
</group>
|
||||
</group>
|
||||
</group>
|
||||
<group string="Internal Notes">
|
||||
<field colspan="2" name="description" nolabel="1" placeholder="This note is only for internal purposes."/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user