Skip to content

Commit

Permalink
[IMP] base_tier_validation: odoo upgrade_code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkhao committed Nov 1, 2024
1 parent 60f32eb commit 1da8d22
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions base_tier_validation/templates/tier_validation_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
invisible="not review_ids"
style="width:100%%; margin-top: 10px;"
>
<tree>
<list>
<field name="id" />
<field name="name" />
<field name="sequence" />
Expand All @@ -99,7 +99,7 @@
<field name="reviewed_date" />
<field name="reviewed_formated_date" />
<field name="comment" />
</tree>
</list>
</field>
</template>
</odoo>
8 changes: 4 additions & 4 deletions base_tier_validation/views/tier_definition_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="tier_definition_view_tree" model="ir.ui.view">
<field name="name">tier.definition.tree</field>
<field name="name">tier.definition.list</field>
<field name="model">tier.definition</field>
<field name="arch" type="xml">
<tree>
<list>
<field name="sequence" widget="handle" />
<field name="model_id" />
<field name="name" />
Expand All @@ -23,7 +23,7 @@
optional="hide"
/>
<field name="active" />
</tree>
</list>
</field>
</record>
<record id="tier_definition_view_form" model="ir.ui.view">
Expand Down Expand Up @@ -156,7 +156,7 @@
<field name="name">Tier Definition</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">tier.definition</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>
<field name="context">{'search_default_all': 1}</field>
</record>
<menuitem
Expand Down
6 changes: 3 additions & 3 deletions base_tier_validation/views/tier_review_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="tier_review_view_tree" model="ir.ui.view">
<field name="name">tier.review.tree</field>
<field name="name">tier.review.list</field>
<field name="model">tier.review</field>
<field name="arch" type="xml">
<tree
<list
decoration-danger="status=='rejected'"
decoration-success="status=='approved'"
>
Expand All @@ -19,7 +19,7 @@
<field name="done_by" />
<field name="reviewed_date" />
<field name="comment" />
</tree>
</list>
</field>
</record>
</odoo>
8 changes: 4 additions & 4 deletions base_tier_validation/views/tier_validation_exception_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="tier_validation_exception_tree" model="ir.ui.view">
<field name="name">tier.validation.exception.tree</field>
<field name="name">tier.validation.exception.list</field>
<field name="model">tier.validation.exception</field>
<field name="arch" type="xml">
<tree>
<list>
<field name="name" />
<field name="model_id" />
<field name="field_ids" widget="many2many_tags" optional="show" />
<field name="company_id" groups="base.group_multi_company" />
<field name="allowed_to_write_under_validation" />
<field name="allowed_to_write_after_validation" />
<field name="group_ids" widget="many2many_tags" />
</tree>
</list>
</field>
</record>

Expand Down Expand Up @@ -101,7 +101,7 @@
<field name="name">Tier Validation Exception</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">tier.validation.exception</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>
<field name="help" type="html">
<p
class="o_view_nocontent_smiling_face"
Expand Down

0 comments on commit 1da8d22

Please sign in to comment.