diff --git a/account_usability/account_view.xml b/account_usability/account_view.xml index 83f0fd9..9e0ccbf 100644 --- a/account_usability/account_view.xml +++ b/account_usability/account_view.xml @@ -225,6 +225,7 @@ module --> account_usability.account_move_line_tree account.move.line + 1 diff --git a/product_unit_manager_group/__init__.py b/product_unit_manager_group/__init__.py new file mode 100644 index 0000000..088391c --- /dev/null +++ b/product_unit_manager_group/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- +# © 2017 Chafique DELLI @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/product_unit_manager_group/__openerp__.py b/product_unit_manager_group/__openerp__.py new file mode 100644 index 0000000..03afc1f --- /dev/null +++ b/product_unit_manager_group/__openerp__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +# © 2017 Chafique DELLI @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + 'name': 'Product Unit Manager Group', + 'summary': 'Add a group Product Unit of Measure Manager', + 'version': '8.0.1.0.0', + 'category': 'Product', + 'website': 'http://akretion.com', + 'author': 'Akretion', + 'license': 'AGPL-3', + 'installable': True, + 'depends': [ + 'sale', + 'purchase', + 'mrp', + ], + 'data': [ + 'security/product_security.xml', + 'security/ir.model.access.csv', + 'views/product_view.xml', + ], +} diff --git a/product_unit_manager_group/i18n/fr.po b/product_unit_manager_group/i18n/fr.po new file mode 100644 index 0000000..0a6782b --- /dev/null +++ b/product_unit_manager_group/i18n/fr.po @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_unit_manager_group +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-13 15:35+0000\n" +"PO-Revision-Date: 2017-03-13 15:35+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: product_unit_manager_group +#: model:res.groups,comment:product_unit_manager_group.group_uom_manager +#: model:res.groups,name:product_unit_manager_group.group_uom_manager +msgid "Manage Multiple Units of Measure" +msgstr "Gérer plusieurs unités de mesure" + +#. module: product_unit_manager_group +#: model:res.groups,comment:product.group_uom +#: model:res.groups,name:product.group_uom +msgid "Use Multiple Units of Measure" +msgstr "Utiliser plusieurs unités de mesure" + diff --git a/product_unit_manager_group/security/ir.model.access.csv b/product_unit_manager_group/security/ir.model.access.csv new file mode 100644 index 0000000..9bf58db --- /dev/null +++ b/product_unit_manager_group/security/ir.model.access.csv @@ -0,0 +1,13 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_product_uom_manager,product.uom.manager,product.model_product_uom,group_uom_manager,1,1,1,1 +access_product_uom_categ_manager,product.uom.categ.manager,product.model_product_uom_categ,group_uom_manager,1,1,1,1 +access_product_uom_user,product.uom.user,product.model_product_uom,product.group_uom,1,0,0,0 +access_product_uom_categ_user,product.uom.categ.user,product.model_product_uom_categ,product.group_uom,1,0,0,0 +sale.access_product_uom_sale_manager,product.uom salemanager,product.model_product_uom,base.group_sale_manager,1,0,0,0 +sale.access_product_uom_categ_sale_manager,product.uom.categ salemanager,product.model_product_uom_categ,base.group_sale_manager,1,0,0,0 +purchase.access_product_uom_purchase_manager,product.uom purchase_manager,product.model_product_uom,purchase.group_purchase_manager,1,0,0,0 +purchase.access_product_uom_categ_purchase_manager,product.uom.categ purchase_manager,product.model_product_uom_categ,purchase.group_purchase_manager,1,0,0,0 +mrp.access_product_uom_mrp_manager,product.uom mrp_manager,product.model_product_uom,mrp.group_mrp_manager,1,0,0,0 +mrp.access_product_uom_categ_mrp_manager,product.uom.categ mrp_manager,product.model_product_uom_categ,mrp.group_mrp_manager,1,0,0,0 +stock.access_product_uom_stock_manager,product.uom stock_manager,product.model_product_uom,stock.group_stock_manager,1,0,0,0 +stock.access_product_uom_categ_stock_manager,product.uom.categ stock_manager,product.model_product_uom_categ,stock.group_stock_manager,1,0,0,0 diff --git a/product_unit_manager_group/security/product_security.xml b/product_unit_manager_group/security/product_security.xml new file mode 100644 index 0000000..3dc9a43 --- /dev/null +++ b/product_unit_manager_group/security/product_security.xml @@ -0,0 +1,19 @@ + + + + + + Use Multiple Units of Measure + Use multiple units of measure + + + + Manage Multiple Units of Measure + Manage Multiple Units of Measure + + + + + + + diff --git a/product_unit_manager_group/views/product_view.xml b/product_unit_manager_group/views/product_view.xml new file mode 100644 index 0000000..59ca28f --- /dev/null +++ b/product_unit_manager_group/views/product_view.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_usability/product_view.xml b/product_usability/product_view.xml index 97b7358..fd5ac90 100644 --- a/product_usability/product_view.xml +++ b/product_usability/product_view.xml @@ -125,6 +125,78 @@ + + usability.product.ul.form + product.ul + + + + + + + + + + + + + + + + usability.product.ul.tree + product.ul + + + + + + + + + + + + + + + diff --git a/sale_partner_shipping_filter_with_customer/__init__.py b/sale_partner_shipping_filter_with_customer/__init__.py new file mode 100644 index 0000000..947f3a3 --- /dev/null +++ b/sale_partner_shipping_filter_with_customer/__init__.py @@ -0,0 +1,5 @@ +# coding: utf-8 +# © 2017 Chafique DELLI @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/sale_partner_shipping_filter_with_customer/__openerp__.py b/sale_partner_shipping_filter_with_customer/__openerp__.py new file mode 100644 index 0000000..b1850b7 --- /dev/null +++ b/sale_partner_shipping_filter_with_customer/__openerp__.py @@ -0,0 +1,21 @@ +# coding: utf-8 +# © 2017 Chafique DELLI @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + 'name': 'Partner Shipping Filter with Customer', + 'summary': "Shows only delivery addresses that are linked " + "with the customer", + 'version': '8.0.1.0.0', + 'category': 'Sale Management', + 'website': 'http://akretion.com', + 'author': 'Akretion, Odoo Community Association (OCA)', + 'license': 'AGPL-3', + 'installable': True, + 'depends': [ + 'sale', + ], + 'data': [ + 'views/sale_view.xml', + ] +} diff --git a/sale_partner_shipping_filter_with_customer/models/__init__.py b/sale_partner_shipping_filter_with_customer/models/__init__.py new file mode 100644 index 0000000..68faef7 --- /dev/null +++ b/sale_partner_shipping_filter_with_customer/models/__init__.py @@ -0,0 +1,5 @@ +# coding: utf-8 +# © 2017 Chafique DELLI @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import sale diff --git a/sale_partner_shipping_filter_with_customer/models/sale.py b/sale_partner_shipping_filter_with_customer/models/sale.py new file mode 100644 index 0000000..796a009 --- /dev/null +++ b/sale_partner_shipping_filter_with_customer/models/sale.py @@ -0,0 +1,12 @@ +# coding: utf-8 +# © 2017 Chafique DELLI @ Akretion +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openerp import models, fields + + +class SaleOrder(models.Model): + _inherit = 'sale.order' + + commercial_partner_id = fields.Many2one( + related='partner_id.commercial_partner_id', readonly=True) diff --git a/sale_partner_shipping_filter_with_customer/views/sale_view.xml b/sale_partner_shipping_filter_with_customer/views/sale_view.xml new file mode 100644 index 0000000..b48d00d --- /dev/null +++ b/sale_partner_shipping_filter_with_customer/views/sale_view.xml @@ -0,0 +1,23 @@ + + + + + + + sale.order + + + + + + + ['|', + ('id', '=', partner_id), '&', + ('type','=', 'delivery'), '&', + ('id', 'child_of', commercial_partner_id), ('parent_id', '!=', False)] + + + + + + diff --git a/stock_usability/stock.py b/stock_usability/stock.py index 6172a25..398c15d 100644 --- a/stock_usability/stock.py +++ b/stock_usability/stock.py @@ -38,6 +38,8 @@ class StockPicking(models.Model): # In the stock module: _order = "priority desc, date asc, id desc" # The problem is date asc + partner_id = fields.Many2one(track_visibility='onchange') + class StockLocation(models.Model): _inherit = 'stock.location' diff --git a/stock_usability/stock_view.xml b/stock_usability/stock_view.xml index 1dda15b..7386202 100644 --- a/stock_usability/stock_view.xml +++ b/stock_usability/stock_view.xml @@ -256,6 +256,16 @@ in the quantities for his reception --> + + stock.usability.quant.package.tree + stock.quant.package + + + + base.group_multi_company + + + stock.usability.stock.move.tree2