From 210e80f01e4e25311f7a54d30e3b58131f4174b7 Mon Sep 17 00:00:00 2001 From: lreficent Date: Wed, 14 Jun 2017 10:16:08 +0200 Subject: [PATCH] [9.0][FIX] README --- procurement_auto_create_group/README.rst | 35 +++++++++---------- .../models/procurement_rule.py | 2 +- .../views/procurement_view.xml | 24 ++++++------- 3 files changed, 29 insertions(+), 32 deletions(-) diff --git a/procurement_auto_create_group/README.rst b/procurement_auto_create_group/README.rst index 121d63ce3..60802c2af 100644 --- a/procurement_auto_create_group/README.rst +++ b/procurement_auto_create_group/README.rst @@ -7,35 +7,34 @@ Procurement Auto Create Group ============================= This module allows the system to propose automatically new procurement groups - in procurement orders. +in procurement orders. - This capability is important when you want to make sure that all the stock - moves resulting from this procurement will never be mixed with moves from - other groups in stock transfers. +This capability is important when you want to make sure that all the stock +moves resulting from this procurement will never be mixed with moves from +other groups in stock transfers. - The stock transfers resulting from the execution of these procurements will - only contain stock moves created from that procurement. +The stock transfers resulting from the execution of these procurements will +only contain stock moves created from that procurement. Configuration ============= -# Go to *Inventory / Configuration / Settings* and check the option 'Advanced - routing of products using rules' and press the 'Apply' button. -# Activate the developer mode. -# Go to *Inventory / Configuration / Routes / Routes* and check the option - 'Auto-create Procurement Group' to the pull rules where you want the - procurement groups to be automatically proposed. +#. Go to *Inventory / Configuration / Settings* and check the option 'Advanced + routing of products using rules' and press the 'Apply' button. +#. Activate the developer mode. +#. Go to *Inventory / Configuration / Routes / Routes* and check the option + 'Auto-create Procurement Group' to the pull rules where you want the + procurement groups to be automatically proposed. Usage ===== -# Go to *Inventory / Reports / Procurement Exceptions*. -# Create a new procurement order and make sure that it determines a pull rule - with the option 'Auto-create Procurement Group' set. -# When you save the procurement order, a procurement group with format - 'PG/000001' will be created. - +#. Go to *Inventory / Reports / Procurement Exceptions*. +#. Create a new procurement order and make sure that it determines a pull rule + with the option 'Auto-create Procurement Group' set. +#. When you save the procurement order, a procurement group with format + 'PG/000001' will be created. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot diff --git a/procurement_auto_create_group/models/procurement_rule.py b/procurement_auto_create_group/models/procurement_rule.py index 3de83eedc..1f767b387 100644 --- a/procurement_auto_create_group/models/procurement_rule.py +++ b/procurement_auto_create_group/models/procurement_rule.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # Copyright 2017 Eficent Business and IT Consulting Services, S.L. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import api, fields, models +from openerp import fields, models class ProcurementRule(models.Model): diff --git a/procurement_auto_create_group/views/procurement_view.xml b/procurement_auto_create_group/views/procurement_view.xml index 3be88312c..c8b6c1d17 100644 --- a/procurement_auto_create_group/views/procurement_view.xml +++ b/procurement_auto_create_group/views/procurement_view.xml @@ -1,18 +1,16 @@ - - - procurement.rule.form - procurement.rule - - - - - - - + + procurement.rule.form + procurement.rule + + + + + + + -