Skip to content

Commit

Permalink
[MIG] contract_sale_generation: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoreno committed May 28, 2024
1 parent ae47349 commit 13479c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion contract_sale_generation/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
"name": "Contracts Management - Recurring Sales",
"version": "17.0.1.1.0",
"version": "17.0.1.0.0",
"category": "Contract Management",
"license": "AGPL-3",
"author": "ACSONE SA/NV, PESOL, Odoo Community Association (OCA)",
Expand Down
9 changes: 3 additions & 6 deletions contract_sale_generation/views/contract.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@
<field name="inherit_id" ref="contract.contract_contract_form_view" />
<field name="arch" type="xml">
<xpath expr="//field[@name='generation_type']" position="after">
<field
attrs="{'invisible':[('generation_type','!=', 'sale')]}"
name="sale_autoconfirm"
/>
<field invisible="generation_type != 'sale'" name="sale_autoconfirm" />
</xpath>
<xpath expr="//button[@name='recurring_create_invoice']" position="before">
<button
attrs="{'invisible': [('generation_type','!=','sale')]}"
invisible="generation_type != 'sale'"
class="oe_link"
groups="base.group_no_one"
name="recurring_create_sale"
Expand All @@ -22,7 +19,7 @@
</xpath>
<xpath expr="//button[@name='action_show_invoices']" position="after">
<button
attrs="{'invisible': [('generation_type','!=','sale')]}"
invisible="generation_type != 'sale'"
class="oe_stat_button"
icon="fa-list"
name="action_show_sales"
Expand Down

0 comments on commit 13479c0

Please sign in to comment.