Skip to content

Commit

Permalink
fix sale order workflow
Browse files Browse the repository at this point in the history
the final draft state was badly broken
BSRTL-174
  • Loading branch information
gurneyalex committed Mar 23, 2017
1 parent 6fe2fdf commit 901bc64
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ latest (unreleased)

* Correct sale validation group names
* fix missing ACLs for hr.employee.status
* fix sale order validation workflow

**Build**

Expand Down
3 changes: 2 additions & 1 deletion odoo/local-src/specific_sale/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,5 @@ def action_confirm(self):
if order.state == 'draft':
order.state = 'final_quote'
else:
order.action_confirm()
super(SaleOrder, order).action_confirm()
return True
4 changes: 4 additions & 0 deletions odoo/local-src/specific_sale/views/sale_order_crm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
<xpath expr="//field[@widget='statusbar']" position="replace">
<field name="state" widget="statusbar" statusbar_visible="draft,final_quote,sent,sale"/>
</xpath>
<xpath expr="//header/button[@name='action_confirm'][1]"
position="attributes">
<attribute name="states">sent,final_quote</attribute>
</xpath>

<notebook position="inside">
<page string="RocTool" name="roctool">
Expand Down
1 change: 1 addition & 0 deletions odoo/migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,4 @@ migration:
addons:
upgrade:
- specific_hr
- specific_sale

0 comments on commit 901bc64

Please sign in to comment.