Skip to content

Commit

Permalink
[11.0][MIG] sale_exception
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Dec 5, 2017
1 parent 5b42371 commit f06fd06
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 25 deletions.
1 change: 1 addition & 0 deletions oca_dependencies.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
server-tools
3 changes: 2 additions & 1 deletion sale_exception/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Sale Exception
This module allows you attach several customizable exceptions to your
sale order in a way that you can filter orders by exceptions type and fix them.

This is especially useful in an scenario for mass sales order import such as
This is especially useful in an scenario for mass sales order import such as
with the base_sale_multi_channels module, because it's likely some orders have
errors when you import them (like product not found in Odoo, wrong line
format etc.)
Expand Down Expand Up @@ -44,6 +44,7 @@ Contributors
* Sébastien BEAU <[email protected]>
* Guewen Baconnier <[email protected]>
* Yannick Vaucher <[email protected]>
* Simone Orsi <[email protected]>
* SodexisTeam <[email protected]>
* Mourad EL HADJ MIMOUNE <[email protected]>

Expand Down
6 changes: 2 additions & 4 deletions sale_exception/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
# © 2011 Raphaël Valyi, Renato Lima, Guewen Baconnier, Sodexis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models, wizard
from . import models
from . import wizard
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# -*- coding: utf-8 -*-
# © 2011 Raphaël Valyi, Renato Lima, Guewen Baconnier, Sodexis
# Copyright 2011 Akretion, Camptocamp, Sodexis
# Copyright 2017 Akretion, Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{'name': 'Sale Exception',
'summary': 'Custom exceptions on sale order',
'version': '10.0.2.0.0',
'version': '11.0.1.0.0',
'category': 'Generic Modules/Sale',
'author': "Akretion, Sodexis, Camptocamp, Odoo Community Association (OCA)",
'website': 'http://www.akretion.com',
Expand All @@ -15,6 +16,4 @@
'wizard/sale_exception_confirm_view.xml',
'views/sale_view.xml',
],
'images': [],
'installable': True,
}
12 changes: 6 additions & 6 deletions sale_exception/data/sale_exception_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

<record forcecreate="True" id="ir_cron_test_orders" model="ir.cron">
<field name="name">Test Draft Orders</field>
<field eval="False" name="active"/>
<field name="active" eval="False"/>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">20</field>
<field name="interval_type">minutes</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall"/>
<field eval="'sale.order'" name="model"/>
<field eval="'test_all_draft_orders'" name="function"/>
<field eval="'()'" name="args"/>
<field name="model_id" ref="sale.model_sale_order"/>
<field name="state">code</field>
<field name="code">model.test_all_draft_orders()</field>
</record>

<record id ="excep_no_zip" model="exception.rule">
<record id="excep_no_zip" model="exception.rule">
<field name="name">No ZIP code on destination</field>
<field name="description">No ZIP code on destination</field>
<field name="sequence">50</field>
Expand All @@ -26,7 +26,7 @@
<field name="active" eval="False"/>
</record>

<record id ="excep_no_stock" model="exception.rule">
<record id="excep_no_stock" model="exception.rule">
<field name="name">Not Enough Virtual Stock</field>
<field name="description">Not Enough Virtual Stock</field>
<field name="sequence">50</field>
Expand Down
3 changes: 0 additions & 3 deletions sale_exception/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# -*- coding: utf-8 -*-
# © 2011 Raphaël Valyi, Renato Lima, Guewen Baconnier, Sodexis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import sale
3 changes: 2 additions & 1 deletion sale_exception/models/sale.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# © 2011 Raphaël Valyi, Renato Lima, Guewen Baconnier, Sodexis
# Copyright 2011 Akretion, Camptocamp, Sodexis
# Copyright 2017 Akretion, Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import api, models, fields
Expand Down
2 changes: 2 additions & 0 deletions sale_exception/tests/test_sale_exception.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2011 Akretion, Camptocamp, Sodexis
# Copyright 2017 Akretion, Camptocamp

from odoo.exceptions import ValidationError
from odoo.addons.sale.tests.test_sale_order import TestSaleOrder
Expand Down
3 changes: 0 additions & 3 deletions sale_exception/wizard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# -*- coding: utf-8 -*-
# © 2011 Raphaël Valyi, Renato Lima, Guewen Baconnier, Sodexis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import sale_exception_confirm
5 changes: 2 additions & 3 deletions sale_exception/wizard/sale_exception_confirm.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# -*- coding: utf-8 -*-
# © 2011 Raphaël Valyi, Renato Lima, Guewen Baconnier, Sodexis
# © 2017 Mourad EL HADJ MIMOUNE, Akretion
# Copyright 2011 Akretion, Camptocamp, Sodexis
# Copyright 2017 Akretion, Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import api, fields, models


Expand Down

0 comments on commit f06fd06

Please sign in to comment.