diff --git a/README.md b/README.md index d25cd9af8ea..c70479ea2a8 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,6 @@ addon | version | summary [product_special_type](product_special_type/) | 1.0 (unported) | Product Special Types [product_special_type_invoice](product_special_type_invoice/) | 1.0 (unported) | Product Special Type on Invoice [product_special_type_sale](product_special_type_sale/) | 1.0 (unported) | Product Special Type on Sale -[purchase_order_reorder_lines](purchase_order_reorder_lines/) | 0.1 (unported) | Purchase order lines with sequence number [sale_condition_text](sale_condition_text/) | 1.3 (unported) | Sale/invoice condition [sale_delivery_term](sale_delivery_term/) | 0.1 (unported) | Delivery term for sale orders [sale_dropshipping](sale_dropshipping/) | 1.1.1 (unported) | Sale Dropshipping diff --git a/purchase_order_reorder_lines/__init__.py b/purchase_order_reorder_lines/__init__.py deleted file mode 100644 index ef00ce3759f..00000000000 --- a/purchase_order_reorder_lines/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# -# -# Author: Alexandre Fayolle -# Copyright 2013 Camptocamp SA -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# - -from . import purchase diff --git a/purchase_order_reorder_lines/__openerp__.py b/purchase_order_reorder_lines/__openerp__.py deleted file mode 100644 index 79cd5e2295e..00000000000 --- a/purchase_order_reorder_lines/__openerp__.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# -# -# Author: Alexandre Fayolle -# Copyright 2013 Camptocamp SA -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# -{ - 'name': 'Purchase order lines with sequence number', - 'version': '0.1', - 'category': 'Purchase Management', - 'description': ''' -Provide a new field on the purchase order form, allowing to manage the lines -order. - ''', - 'author': "Camptocamp,Odoo Community Association (OCA)", - 'website': 'http://www.camptocamp.com', - 'depends': [ - 'purchase', - 'stock_picking_reorder_lines', - 'account_invoice_reorder_lines' - ], - 'data': ['purchase_view.xml'], - 'demo': [], - 'test': [], - 'installable': False, - 'auto_install': False, - 'application': False, - 'license': "AGPL-3", -} diff --git a/purchase_order_reorder_lines/i18n/en.po b/purchase_order_reorder_lines/i18n/en.po deleted file mode 100644 index 51ec025e0a9..00000000000 --- a/purchase_order_reorder_lines/i18n/en.po +++ /dev/null @@ -1,42 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * purchase_order_reorder_lines -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-09-30 12:03+0000\n" -"PO-Revision-Date: 2013-09-30 12:03+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: purchase_order_reorder_lines -#: model:ir.model,name:purchase_order_reorder_lines.model_purchase_order_line -msgid "Purchase Order Line" -msgstr "Purchase Order Line" - -#. module: purchase_order_reorder_lines -#: field:purchase.order.line,sequence:0 -msgid "Sequence" -msgstr "Sequence" - -#. module: purchase_order_reorder_lines -#: model:ir.model,name:purchase_order_reorder_lines.model_purchase_order_line_invoice -msgid "Purchase Order Line Make Invoice" -msgstr "Purchase Order Line Make Invoice" - -#. module: purchase_order_reorder_lines -#: help:purchase.order.line,sequence:0 -msgid "Gives the sequence of this line when displaying the purchase order." -msgstr "Gives the sequence of this line when displaying the purchase order." - -#. module: purchase_order_reorder_lines -#: model:ir.model,name:purchase_order_reorder_lines.model_purchase_order -msgid "Purchase Order" -msgstr "Purchase Order" - diff --git a/purchase_order_reorder_lines/i18n/fr.po b/purchase_order_reorder_lines/i18n/fr.po deleted file mode 100644 index 8827435a5b2..00000000000 --- a/purchase_order_reorder_lines/i18n/fr.po +++ /dev/null @@ -1,42 +0,0 @@ -# Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * purchase_order_reorder_lines -# -msgid "" -msgstr "" -"Project-Id-Version: OpenERP Server 7.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-09-30 12:03+0000\n" -"PO-Revision-Date: 2013-09-30 14:05+0200\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: purchase_order_reorder_lines -#: model:ir.model,name:purchase_order_reorder_lines.model_purchase_order_line -msgid "Purchase Order Line" -msgstr "Ligne de commande d'achat" - -#. module: purchase_order_reorder_lines -#: field:purchase.order.line,sequence:0 -msgid "Sequence" -msgstr "Séquence" - -#. module: purchase_order_reorder_lines -#: model:ir.model,name:purchase_order_reorder_lines.model_purchase_order_line_invoice -msgid "Purchase Order Line Make Invoice" -msgstr "Créer la facture des lignes de commande d'achat" - -#. module: purchase_order_reorder_lines -#: help:purchase.order.line,sequence:0 -msgid "Gives the sequence of this line when displaying the purchase order." -msgstr "Numéro d'ordre des lines lors de l'affichage du bon de commande." - -#. module: purchase_order_reorder_lines -#: model:ir.model,name:purchase_order_reorder_lines.model_purchase_order -msgid "Purchase Order" -msgstr "Bon de commande" - diff --git a/purchase_order_reorder_lines/purchase.py b/purchase_order_reorder_lines/purchase.py deleted file mode 100644 index e901a5aa9a4..00000000000 --- a/purchase_order_reorder_lines/purchase.py +++ /dev/null @@ -1,85 +0,0 @@ -# -*- coding: utf-8 -*- -# -# -# Author: Alexandre Fayolle -# Copyright 2013 Camptocamp SA -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# - -from openerp.osv import orm, fields - - -class purchase_order_line(orm.Model): - _inherit = 'purchase.order.line' - _columns = { - 'sequence': fields.integer('Sequence', - help="Gives the sequence of this line when " - "displaying the purchase order."), - } - _order = 'order_id desc, sequence, id' - _defaults = {'sequence': 10, - } - - -class purchase_order(orm.Model): - _inherit = 'purchase.order' - - def _prepare_inv_line(self, cr, uid, account_id, order_line, context=None): - res = super(purchase_order, self)._prepare_inv_line(cr, uid, - account_id, - order_line, - context) - res['sequence'] = order_line.sequence - return res - - def _prepare_order_line_move( - self, cr, uid, order, line, picking_id, context=None - ): - res = super(purchase_order, self)._prepare_order_line_move(cr, uid, - order, - line, - picking_id) - res['sequence'] = line.sequence - return res - - -class purchase_line_invoice(orm.TransientModel): - _inherit = 'purchase.order.line_invoice' - - def makeInvoices(self, cr, uid, ids, context=None): - invoice_line_obj = self.pool.get('account.invoice.line') - purchase_line_obj = self.pool.get('purchase.order.line') - res = super(purchase_line_invoice, self).makeInvoices( - cr, uid, ids, context) - invoice_ids = eval(res['domain'])[0][-1] # OMG :-( - invoice_line_ids = invoice_line_obj.search( - cr, uid, [('invoice_id', 'in', invoice_ids)], context=context) - for invoice_line in invoice_line_obj.browse(cr, uid, - invoice_line_ids, - context=context): - order_line_ids = purchase_line_obj.search( - cr, uid, [('invoice_lines', '=', invoice_line.id)], - context=context) - if not order_line_ids: - continue - record_data = purchase_line_obj.read(cr, uid, - order_line_ids[0], - ['sequence'], - context=context) - order_line_seq = record_data['sequence'] - if not invoice_line.sequence: - invoice_line.write({'sequence': order_line_seq}) - return res diff --git a/purchase_order_reorder_lines/purchase_view.xml b/purchase_order_reorder_lines/purchase_view.xml deleted file mode 100644 index c33c878bb17..00000000000 --- a/purchase_order_reorder_lines/purchase_view.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - purchase.order.line.form - purchase.order.line - - - - - - - - - - purchase.order.form - purchase.order - - 2 - - - - - - - - - -