Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions contract/views/contract.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<button
name="recurring_create_invoice"
type="object"
invisible="not create_invoice_visibility and generation_type != 'invoice'"
invisible="not create_invoice_visibility or generation_type != 'invoice'"
string="Create invoices"
groups="base.group_no_one"
/>
Expand Down Expand Up @@ -304,11 +304,7 @@
<field name="payment_term_id" />
</group>
</group>
<group
col="4"
name="recurring_type"
string="Recurring Type"
>
<group name="recurring_type" string="Recurring Type">
<field name="generation_type" />
</group>
</page>
Expand Down
3 changes: 1 addition & 2 deletions contract_sale_generation/views/contract.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
<xpath expr="//button[@name='recurring_create_invoice']" position="before">
<button
invisible="generation_type != 'sale'"
class="oe_link"
groups="base.group_no_one"
name="recurring_create_sale"
string="CREATE SALES"
string="Create Sales"
type="object"
/>
</xpath>
Expand Down