Skip to content

Commit

Permalink
[MIG]sale_force_whole_invoiceability: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger committed Jul 25, 2024
1 parent 07b5497 commit 640c668
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sale_force_whole_invoiceability/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Sale Force Whole Invoiceability",
"version": "15.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Sales",
"author": "Tecnativa," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def setUpClass(cls):
order_line.product_uom_qty = 5
cls.sale_order = sale.save()

@users("admin", "test-sale-manager")
@users("test-sale-manager")
def test_01_force_invoiceability_draft(self):
"""Try to force invoiceability"""
# The order is still not in `sale` mode so we can't force it
Expand Down
4 changes: 2 additions & 2 deletions sale_force_whole_invoiceability/views/sale_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<record id="view_order_form" model="ir.ui.view">
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="groups_id" eval="[(4,ref('sales_team.group_sale_manager'))]" />
<field name="arch" type="xml">
<button name="action_quotation_send" position="before">
<button
name="force_lines_to_invoice_policy_order"
string="Force Invoice Policy"
type="object"
attrs="{'invisible': [('state', 'not in', ['sale']), ('invoice_count', '>', 0)]}"
invisible="state not in ['sale'] and invoice_count > 0"
groups="sales_team.group_sale_manager"
/>
</button>
</field>
Expand Down

0 comments on commit 640c668

Please sign in to comment.