mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix sale editor
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="website.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@id='social_default_image_setting']" position="after">
|
||||
<xpath expr="//setting[@id='social_default_image_setting']" position="after">
|
||||
<div class="col-12 col-lg-6 o_setting_box" id="blog_default_image_setting">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="sync_blog_meta_background_img"/>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
{
|
||||
'name': "Website Product Editor in Backend",
|
||||
'version': '24.03.12',
|
||||
'version': '24.03.15',
|
||||
'author': 'odooai.cn',
|
||||
'category': 'Website',
|
||||
'website': 'https://www.odooai.cn',
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='sales']" position="after">
|
||||
<page name="shop_desc" string="Website Description" attrs="{'invisible': [('sale_ok','=',False)]}">
|
||||
<page name="shop_desc" string="Website Description" invisible="sale_ok == False">
|
||||
<group>
|
||||
<group>
|
||||
<!-- 这里加个快速设置 seo url字段-->
|
||||
@@ -64,10 +64,10 @@
|
||||
<field name="arch" type="xml">
|
||||
<form string="Website Product">
|
||||
<sheet name="product_form">
|
||||
<div class="oe_button_box" name="button_box" attrs="{'invisible': [('active', '=', False)]}">
|
||||
<div class="oe_button_box" name="button_box" invisible="active == False">
|
||||
<field name="is_published" widget="website_redirect_button"/>
|
||||
</div>
|
||||
<widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
|
||||
<widget name="web_ribbon" title="Archived" bg_color="bg-danger" invisible="active == False"/>
|
||||
<field name="id" invisible="1"/>
|
||||
<field name="active" invisible="1"/>
|
||||
<field name="image_1920" widget="image" class="oe_avatar" options="{'preview_image': 'image_128'}"/>
|
||||
@@ -87,7 +87,7 @@
|
||||
</group>
|
||||
<notebook>
|
||||
<page name="shop_desc" string="Website Description">
|
||||
<field name="website_description" nolabel="1" widget="ace" attrs="{'invisible': [('sale_ok','=',False)]}"/>
|
||||
<field name="website_description" nolabel="1" widget="ace" invisible="sale_ok == False"/>
|
||||
</page>
|
||||
<page name="seo" string="SEO">
|
||||
<group>
|
||||
|
||||
Reference in New Issue
Block a user