diff --git a/sale_order_type/README.rst b/sale_order_type/README.rst index ccefcba22b58..a8f23d419557 100644 --- a/sale_order_type/README.rst +++ b/sale_order_type/README.rst @@ -1,11 +1,32 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg +=============== +Sale Order Type +=============== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 - -Sales Order Type -================ +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github + :target: https://github.com/OCA/sale-workflow/tree/10.0/sale_order_type + :alt: OCA/sale-workflow +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/sale-workflow-10-0/sale-workflow-10-0-sale_order_type + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/167/10.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| This module adds a typology for the sales orders. In each different type, you -can define, invoicing and refunding journal, a warehouse, a sequence, +can define: invoicing and refunding journal, a warehouse, a sequence, the shipping policy, the invoicing policy, a payment term, a pricelist and an incoterm. @@ -14,6 +35,22 @@ You can see sale types as lines of business. You are able to select a sales order type by partner so that when you add a partner to a sales order it will get the related info to it. +Rules can also be associated with sale order types. + +Inside each rule, you can select any number of products and/or product categories. + +When editing a sale order that has no type, if a product matches the product of any rule then the sale order type bound to the rule is associated to the sale order. +If the rule does not match *by product*, product categories are checked. + +In the sale order form you can also find the matching order type by clicking on the button *Find by rule* placed near the *Type* field. + +The sale order types and the rules are inspected based on the value of their *sequence* field. + +**Table of contents** + +.. contents:: + :local: + Configuration ============= @@ -28,25 +65,30 @@ Usage * Go to **Sales > Sales Orders** and create a new sale order. Select the new type you have created before and all settings will be propagated. * You can also define a type for a particular partner if you go to *Sales & Purchases* and set a sale order type. -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/167/10.0 - - Bug Tracker =========== Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed feedback -`here `_. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. +Do not contact contributors directly about support or help with technical issues. Credits ======= +Authors +~~~~~~~ + +* Grupo Vermon +* AvanzOSC +* Tecnativa +* Agile Business Group +* Niboo + Contributors ------------- +~~~~~~~~~~~~ * Carlos Sánchez Cifuentes * Oihane Crucelaegui @@ -57,18 +99,21 @@ Contributors * Lorenzo Battistini * Samuel Lefever * Pierre Faniel +* Simone Rubino + +Maintainers +~~~~~~~~~~~ -Maintainer ----------- +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -To contribute to this module, please visit http://odoo-community.org. +This module is part of the `OCA/sale-workflow `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_order_type/__manifest__.py b/sale_order_type/__manifest__.py index 1bb1f10e3fc6..64dfa4f8334e 100644 --- a/sale_order_type/__manifest__.py +++ b/sale_order_type/__manifest__.py @@ -8,7 +8,7 @@ { "name": "Sale Order Type", - "version": "10.0.1.0.1", + "version": "10.0.1.1.0", "category": "Sales Management", "author": "Grupo Vermon," "AvanzOSC," @@ -30,6 +30,7 @@ "security/security.xml", "views/sale_order_view.xml", "views/sale_order_type_view.xml", + "views/sale_order_type_rule_view.xml", "views/account_invoice_view.xml", "views/res_partner_view.xml", "data/default_type.xml", diff --git a/sale_order_type/models/__init__.py b/sale_order_type/models/__init__.py index cea6b734d703..d6cac19e4658 100644 --- a/sale_order_type/models/__init__.py +++ b/sale_order_type/models/__init__.py @@ -2,6 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import sale_order_type +from . import sale_order_type_rule from . import sale_order from . import res_partner from . import account_invoice diff --git a/sale_order_type/models/sale_order.py b/sale_order_type/models/sale_order.py index 56ad6b826a93..cbf49c1028cf 100644 --- a/sale_order_type/models/sale_order.py +++ b/sale_order_type/models/sale_order.py @@ -35,6 +35,23 @@ def onchange_type_id(self): if order.type_id.incoterm_id: order.incoterm = order.type_id.incoterm_id.id + @api.multi + @api.onchange('order_line') + def _onchange_order_line(self): + for order in self: + if not order.type_id: + order.match_order_type() + + @api.multi + def match_order_type(self): + order_types = self.env['sale.order.type'].search([]) + for order in self: + for order_type in order_types: + if order_type.matches_order(order): + order.type_id = order_type + order.onchange_type_id() + break + @api.model def create(self, vals): if vals.get('name', '/') == '/'and vals.get('type_id'): diff --git a/sale_order_type/models/sale_order_type.py b/sale_order_type/models/sale_order_type.py index 1f81225b1ec2..2d03cce0fee9 100644 --- a/sale_order_type/models/sale_order_type.py +++ b/sale_order_type/models/sale_order_type.py @@ -7,6 +7,7 @@ class SaleOrderTypology(models.Model): _name = 'sale.order.type' _description = 'Type of sale order' + _order = 'sequence' @api.model def _get_domain_sequence_id(self): @@ -41,3 +42,12 @@ def default_picking_policy(self): payment_term_id = fields.Many2one('account.payment.term', 'Payment Term') pricelist_id = fields.Many2one('product.pricelist', 'Pricelist') incoterm_id = fields.Many2one('stock.incoterms', 'Incoterm') + sequence = fields.Integer(default=10) + rule_ids = fields.One2many( + comodel_name='sale.order.type.rule', inverse_name='order_type_id', + copy=True) + + @api.multi + def matches_order(self, order): + self.ensure_one() + return any(rule.matches_order(order) for rule in self.rule_ids) diff --git a/sale_order_type_rule/models/sale_order_type_rule.py b/sale_order_type/models/sale_order_type_rule.py similarity index 67% rename from sale_order_type_rule/models/sale_order_type_rule.py rename to sale_order_type/models/sale_order_type_rule.py index ce8cb3a4b800..afa3954aed85 100644 --- a/sale_order_type_rule/models/sale_order_type_rule.py +++ b/sale_order_type/models/sale_order_type_rule.py @@ -20,12 +20,12 @@ class SaleOrderTypeRule(models.Model): def matches_order(self, order): self.ensure_one() order_products = order.order_line.mapped('product_id') - if self.product_ids: - return any([ - rule_product in order_products - for rule_product in self.product_ids]) - if self.product_category_ids: - return any([ - rule_category in order_products.mapped('categ_id') - for rule_category in self.product_category_ids]) + if self.product_ids and any( + [rule_product in order_products + for rule_product in self.product_ids]): + return True + if self.product_category_ids and any( + [rule_category in order_products.mapped('categ_id') + for rule_category in self.product_category_ids]): + return True return False diff --git a/sale_order_type/readme/CONFIGURE.rst b/sale_order_type/readme/CONFIGURE.rst new file mode 100644 index 000000000000..97b86c1dcefe --- /dev/null +++ b/sale_order_type/readme/CONFIGURE.rst @@ -0,0 +1,4 @@ +To configure Sale Order Types you need to: + +1. Go to **Sales > Configuration > Sales Orders Types** +2. Create a new sale order type with all the settings you want diff --git a/sale_order_type/readme/CONTRIBUTORS.rst b/sale_order_type/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..dab559fddead --- /dev/null +++ b/sale_order_type/readme/CONTRIBUTORS.rst @@ -0,0 +1,10 @@ +* Carlos Sánchez Cifuentes +* Oihane Crucelaegui +* Pedro M. Baeza +* Ana Juaristi +* Daniel Campos +* Ainara Galdona +* Lorenzo Battistini +* Samuel Lefever +* Pierre Faniel +* Simone Rubino diff --git a/sale_order_type_rule/readme/DESCRIPTION.rst b/sale_order_type/readme/DESCRIPTION.rst similarity index 54% rename from sale_order_type_rule/readme/DESCRIPTION.rst rename to sale_order_type/readme/DESCRIPTION.rst index 42d26faa048e..646500a7c54b 100644 --- a/sale_order_type_rule/readme/DESCRIPTION.rst +++ b/sale_order_type/readme/DESCRIPTION.rst @@ -1,4 +1,14 @@ -This module allows the user to define rules in sale order types. +This module adds a typology for the sales orders. In each different type, you +can define: invoicing and refunding journal, a warehouse, a sequence, +the shipping policy, the invoicing policy, a payment term, a pricelist +and an incoterm. + +You can see sale types as lines of business. + +You are able to select a sales order type by partner so that when you add a +partner to a sales order it will get the related info to it. + +Rules can also be associated with sale order types. Inside each rule, you can select any number of products and/or product categories. diff --git a/sale_order_type/readme/USAGE.rst b/sale_order_type/readme/USAGE.rst new file mode 100644 index 000000000000..89dc15de2eb4 --- /dev/null +++ b/sale_order_type/readme/USAGE.rst @@ -0,0 +1,2 @@ +* Go to **Sales > Sales Orders** and create a new sale order. Select the new type you have created before and all settings will be propagated. +* You can also define a type for a particular partner if you go to *Sales & Purchases* and set a sale order type. diff --git a/sale_order_type/security/ir.model.access.csv b/sale_order_type/security/ir.model.access.csv index 864a1e295858..336a821c0a60 100644 --- a/sale_order_type/security/ir.model.access.csv +++ b/sale_order_type/security/ir.model.access.csv @@ -2,3 +2,6 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_sale_order_type_manager,access_sale_order_type_manager,model_sale_order_type,sales_team.group_sale_manager,1,1,1,1 access_sale_order_type_salesman,access_sale_order_type_salesman,model_sale_order_type,sales_team.group_sale_salesman,1,0,0,0 access_sale_order_type_account,access_sale_order_type_account,model_sale_order_type,account.group_account_invoice,1,0,0,0 +access_sale_order_type_rule_manager,access_sale_order_type_rule_manager,model_sale_order_type_rule,sales_team.group_sale_manager,1,1,1,1 +access_sale_order_type_rule_salesman,access_sale_order_type_rule_salesman,model_sale_order_type_rule,sales_team.group_sale_salesman,1,0,0,0 +access_sale_order_type_rule_account,access_sale_order_type_rule_account,model_sale_order_type_rule,account.group_account_invoice,1,0,0,0 diff --git a/sale_order_type_rule/static/description/index.html b/sale_order_type/static/description/index.html similarity index 71% rename from sale_order_type_rule/static/description/index.html rename to sale_order_type/static/description/index.html index 3c6d1a0240d5..1161303fe839 100644 --- a/sale_order_type_rule/static/description/index.html +++ b/sale_order_type/static/description/index.html @@ -4,7 +4,7 @@ -Sale order type rule +Sale Order Type -
-

Sale order type rule

+
+

Sale Order Type

-

Beta License: AGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runbot

-

This module allows the user to define rules in sale order types.

+

Beta License: AGPL-3 OCA/sale-workflow Translate me on Weblate Try me on Runbot

+

This module adds a typology for the sales orders. In each different type, you +can define: invoicing and refunding journal, a warehouse, a sequence, +the shipping policy, the invoicing policy, a payment term, a pricelist +and an incoterm.

+

You can see sale types as lines of business.

+

You are able to select a sales order type by partner so that when you add a +partner to a sales order it will get the related info to it.

+

Rules can also be associated with sale order types.

Inside each rule, you can select any number of products and/or product categories.

When editing a sale order that has no type, if a product matches the product of any rule then the sale order type bound to the rule is associated to the sale order. If the rule does not match by product, product categories are checked.

@@ -377,45 +384,75 @@

Sale order type rule

Table of contents

+
+

Configuration

+

To configure Sale Order Types you need to:

+
    +
  1. Go to Sales > Configuration > Sales Orders Types
  2. +
  3. Create a new sale order type with all the settings you want
  4. +
+
+
+

Usage

+
    +
  • Go to Sales > Sales Orders and create a new sale order. Select the new type you have created before and all settings will be propagated.
  • +
  • You can also define a type for a particular partner if you go to Sales & Purchases and set a sale order type.
  • +
+
-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

    +
  • Grupo Vermon
  • +
  • AvanzOSC
  • +
  • Tecnativa
  • Agile Business Group
  • +
  • Niboo
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/sale-workflow project on GitHub.

+

This module is part of the OCA/sale-workflow project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/sale_order_type/tests/__init__.py b/sale_order_type/tests/__init__.py index 3d6bb588faf5..15a67210b9b3 100644 --- a/sale_order_type/tests/__init__.py +++ b/sale_order_type/tests/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# (c) 2015 Oihane Crucelaegui - AvanzOSC # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from . import test_sale_order_type +from . import test_sale_order_type_rule diff --git a/sale_order_type_rule/tests/test_sale_order_type_rule.py b/sale_order_type/tests/test_sale_order_type_rule.py similarity index 100% rename from sale_order_type_rule/tests/test_sale_order_type_rule.py rename to sale_order_type/tests/test_sale_order_type_rule.py diff --git a/sale_order_type/views/sale_order_type_rule_view.xml b/sale_order_type/views/sale_order_type_rule_view.xml new file mode 100644 index 000000000000..87dc638fe6a9 --- /dev/null +++ b/sale_order_type/views/sale_order_type_rule_view.xml @@ -0,0 +1,32 @@ + + + + + + Sale order type rule form + sale.order.type.rule + +
+ + + + + + + +
+
+
+ + + Sale order type rule tree + sale.order.type.rule + + + + + + + +
diff --git a/sale_order_type/views/sale_order_type_view.xml b/sale_order_type/views/sale_order_type_view.xml index bfb07d776125..7e40018c74a4 100644 --- a/sale_order_type/views/sale_order_type_view.xml +++ b/sale_order_type/views/sale_order_type_view.xml @@ -31,6 +31,11 @@ + + + + + @@ -41,6 +46,7 @@ sale.order.type + diff --git a/sale_order_type/views/sale_order_view.xml b/sale_order_type/views/sale_order_view.xml index a09f2a7f6a25..b4ff0176371f 100644 --- a/sale_order_type/views/sale_order_view.xml +++ b/sale_order_type/views/sale_order_view.xml @@ -6,7 +6,12 @@ - + diff --git a/sale_order_type_rule/README.rst b/sale_order_type_rule/README.rst deleted file mode 100644 index 997df93769d1..000000000000 --- a/sale_order_type_rule/README.rst +++ /dev/null @@ -1,82 +0,0 @@ -==================== -Sale order type rule -==================== - -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! This file is generated by oca-gen-addon-readme !! - !! changes will be overwritten. !! - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png - :target: https://odoo-community.org/page/development-status - :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 -.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github - :target: https://github.com/OCA/sale-workflow/tree/10.0/sale_order_type_rule - :alt: OCA/sale-workflow -.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/sale-workflow-10-0/sale-workflow-10-0-sale_order_type_rule - :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/167/10.0 - :alt: Try me on Runbot - -|badge1| |badge2| |badge3| |badge4| |badge5| - -This module allows the user to define rules in sale order types. - -Inside each rule, you can select any number of products and/or product categories. - -When editing a sale order that has no type, if a product matches the product of any rule then the sale order type bound to the rule is associated to the sale order. -If the rule does not match *by product*, product categories are checked. - -In the sale order form you can also find the matching order type by clicking on the button *Find by rule* placed near the *Type* field. - -The sale order types and the rules are inspected based on the value of their *sequence* field. - -**Table of contents** - -.. contents:: - :local: - -Bug Tracker -=========== - -Bugs are tracked on `GitHub Issues `_. -In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. - -Do not contact contributors directly about support or help with technical issues. - -Credits -======= - -Authors -~~~~~~~ - -* Agile Business Group - -Contributors -~~~~~~~~~~~~ - -* Simone Rubino - -Maintainers -~~~~~~~~~~~ - -This module is maintained by the OCA. - -.. image:: https://odoo-community.org/logo.png - :alt: Odoo Community Association - :target: https://odoo-community.org - -OCA, or the Odoo Community Association, is a nonprofit organization whose -mission is to support the collaborative development of Odoo features and -promote its widespread use. - -This module is part of the `OCA/sale-workflow `_ project on GitHub. - -You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_order_type_rule/__init__.py b/sale_order_type_rule/__init__.py deleted file mode 100644 index b44d765940f6..000000000000 --- a/sale_order_type_rule/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# -*- coding: utf-8 -*- -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). - -from . import models diff --git a/sale_order_type_rule/__manifest__.py b/sale_order_type_rule/__manifest__.py deleted file mode 100644 index 237728409f59..000000000000 --- a/sale_order_type_rule/__manifest__.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2018 Simone Rubino - Agile Business Group -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -{ - "name": "Sale order type rule", - "summary": "Assign an order type based on rules", - "version": "10.0.1.0.0", - "development_status": "Beta", - "category": "Sales", - "website": "https://github.com/OCA/sale-workflow/tree/" - "10.0/sale_order_type_rule", - "author": "Agile Business Group, Odoo Community Association (OCA)", - "license": "AGPL-3", - "depends": [ - "sale_order_type", - ], - "data": [ - "security/ir.model.access.csv", - "views/sale_view.xml" - ] -} diff --git a/sale_order_type_rule/models/__init__.py b/sale_order_type_rule/models/__init__.py deleted file mode 100644 index deb161710ce1..000000000000 --- a/sale_order_type_rule/models/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -# -*- coding: utf-8 -*- -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). - -from . import sale_order -from . import sale_order_type -from . import sale_order_type_rule diff --git a/sale_order_type_rule/models/sale_order.py b/sale_order_type_rule/models/sale_order.py deleted file mode 100644 index 6e60fdac4a25..000000000000 --- a/sale_order_type_rule/models/sale_order.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2018 Simone Rubino - Agile Business Group -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -from odoo import api, models - - -class SaleOrder(models.Model): - _inherit = 'sale.order' - - @api.onchange('order_line') - def _onchange_order_line(self): - if self.type_id: - return - self.match_order_type() - - @api.multi - def match_order_type(self): - order_types = self.env['sale.order.type'].search([]) - for order in self: - for order_type in order_types: - if order_type.matches_order(order): - order.type_id = order_type - order.onchange_type_id() - break diff --git a/sale_order_type_rule/models/sale_order_type.py b/sale_order_type_rule/models/sale_order_type.py deleted file mode 100644 index 56a2e47cba79..000000000000 --- a/sale_order_type_rule/models/sale_order_type.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2018 Simone Rubino - Agile Business Group -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -from odoo import api, fields, models - - -class SaleOrderType(models.Model): - _inherit = 'sale.order.type' - _order = 'sequence' - - sequence = fields.Integer(default=10) - rule_ids = fields.One2many( - comodel_name='sale.order.type.rule', inverse_name='order_type_id', - copy=True) - - @api.multi - def matches_order(self, order): - self.ensure_one() - return any(rule.matches_order(order) for rule in self.rule_ids) diff --git a/sale_order_type_rule/readme/CONTRIBUTORS.rst b/sale_order_type_rule/readme/CONTRIBUTORS.rst deleted file mode 100644 index a200b876a657..000000000000 --- a/sale_order_type_rule/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1 +0,0 @@ -* Simone Rubino diff --git a/sale_order_type_rule/security/ir.model.access.csv b/sale_order_type_rule/security/ir.model.access.csv deleted file mode 100644 index 165df8f2bb51..000000000000 --- a/sale_order_type_rule/security/ir.model.access.csv +++ /dev/null @@ -1,4 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_sale_order_type_rule_manager,access_sale_order_type_rule_manager,model_sale_order_type_rule,sales_team.group_sale_manager,1,1,1,1 -access_sale_order_type_rule_salesman,access_sale_order_type_rule_salesman,model_sale_order_type_rule,sales_team.group_sale_salesman,1,0,0,0 -access_sale_order_type_rule_account,access_sale_order_type_rule_account,model_sale_order_type_rule,account.group_account_invoice,1,0,0,0 diff --git a/sale_order_type_rule/tests/__init__.py b/sale_order_type_rule/tests/__init__.py deleted file mode 100644 index d4216673f39a..000000000000 --- a/sale_order_type_rule/tests/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# -*- coding: utf-8 -*- -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). - -from . import test_sale_order_type_rule diff --git a/sale_order_type_rule/views/sale_view.xml b/sale_order_type_rule/views/sale_view.xml deleted file mode 100644 index fed9fa8faed2..000000000000 --- a/sale_order_type_rule/views/sale_view.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - Sale order type rule form - sale.order.type.rule - -
- - - - - - - -
-
-
- - - Sale order type rule tree - sale.order.type.rule - - - - - - - - - - - Insert sale order type rules - sale.order.type - - - - - - - - - - - - - - Insert sequence - sale.order.type - - - - - - - - - - - Insert order type match button - sale.order - - - - - - -