mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] stock_orderpoint_purchase_link: Migration to 13.0
[UPD] Update stock_orderpoint_purchase_link.pot
This commit is contained in:
committed by
Dũng (Trần Đình)
parent
d091654ebd
commit
13c620341a
@@ -1,13 +1,13 @@
|
|||||||
# Copyright 2018 Eficent Business and IT Consulting Services, S.L.
|
# Copyright 2018-20 ForgeFlow S.L. (https://www.forgeflow.com)
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "Stock Orderpoint Purchase Link",
|
"name": "Stock Orderpoint Purchase Link",
|
||||||
"summary": "Link Reordering rules to purchase orders",
|
"summary": "Link Reordering rules to purchase orders",
|
||||||
"version": "12.0.1.0.0",
|
"version": "13.0.1.0.0",
|
||||||
"license": "LGPL-3",
|
"license": "LGPL-3",
|
||||||
"website": "https://github.com/OCA/stock-logistics-warehouse",
|
"website": "https://github.com/OCA/stock-logistics-warehouse",
|
||||||
"author": "Eficent, " "Odoo Community Association (OCA)",
|
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
||||||
"category": "Warehouse Management",
|
"category": "Warehouse Management",
|
||||||
"depends": ["stock_orderpoint_move_link", "purchase_stock"],
|
"depends": ["stock_orderpoint_move_link", "purchase_stock"],
|
||||||
"data": ["views/purchase_order_views.xml"],
|
"data": ["views/purchase_order_views.xml"],
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
# Translation of Odoo Server.
|
# Translation of Odoo Server.
|
||||||
# This file contains the translation of the following modules:
|
# This file contains the translation of the following modules:
|
||||||
# * stock_orderpoint_purchase_link
|
# * stock_orderpoint_purchase_link
|
||||||
#
|
#
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 12.0\n"
|
"Project-Id-Version: Odoo Server 13.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"Last-Translator: <>\n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
@@ -32,7 +32,6 @@ msgstr ""
|
|||||||
|
|
||||||
#. module: stock_orderpoint_purchase_link
|
#. module: stock_orderpoint_purchase_link
|
||||||
#: model:ir.model.fields,field_description:stock_orderpoint_purchase_link.field_stock_warehouse_orderpoint__purchase_line_ids
|
#: model:ir.model.fields,field_description:stock_orderpoint_purchase_link.field_stock_warehouse_orderpoint__purchase_line_ids
|
||||||
#: model:ir.model.fields,field_description:stock_orderpoint_purchase_link.field_stock_warehouse_orderpoint_template__purchase_line_ids
|
|
||||||
msgid "Purchase Order Lines"
|
msgid "Purchase Order Lines"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -40,4 +39,3 @@ msgstr ""
|
|||||||
#: model:ir.model,name:stock_orderpoint_purchase_link.model_stock_rule
|
#: model:ir.model,name:stock_orderpoint_purchase_link.model_stock_rule
|
||||||
msgid "Stock Rule"
|
msgid "Stock Rule"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2018 Eficent Business and IT Consulting Services, S.L.
|
# Copyright 2018-20 ForgeFlow S.L. (https://www.forgeflow.com)
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||||
|
|
||||||
from odoo import fields, models
|
from odoo import fields, models
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2018 Eficent Business and IT Consulting Services, S.L.
|
# Copyright 2018-20 ForgeFlow S.L. (https://www.forgeflow.com)
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||||
|
|
||||||
from odoo import models
|
from odoo import models
|
||||||
@@ -8,13 +8,13 @@ class StockRule(models.Model):
|
|||||||
_inherit = "stock.rule"
|
_inherit = "stock.rule"
|
||||||
|
|
||||||
def _prepare_purchase_order_line(
|
def _prepare_purchase_order_line(
|
||||||
self, product_id, product_qty, product_uom, values, po, partner
|
self, product_id, product_qty, product_uom, company_id, values, po
|
||||||
):
|
):
|
||||||
vals = super()._prepare_purchase_order_line(
|
vals = super()._prepare_purchase_order_line(
|
||||||
product_id, product_qty, product_uom, values, po, partner
|
product_id, product_qty, product_uom, company_id, values, po
|
||||||
)
|
)
|
||||||
# If the procurement was run directly by a reordering rule.
|
# If the procurement was run directly by a reordering rule.
|
||||||
if "orderpoint_id" in values:
|
if "orderpoint_id" in values and values["orderpoint_id"].id:
|
||||||
vals["orderpoint_ids"] = [(4, values["orderpoint_id"].id)]
|
vals["orderpoint_ids"] = [(4, values["orderpoint_id"].id)]
|
||||||
# If the procurement was run by a stock move.
|
# If the procurement was run by a stock move.
|
||||||
elif "orderpoint_ids" in values:
|
elif "orderpoint_ids" in values:
|
||||||
@@ -22,12 +22,12 @@ class StockRule(models.Model):
|
|||||||
return vals
|
return vals
|
||||||
|
|
||||||
def _update_purchase_order_line(
|
def _update_purchase_order_line(
|
||||||
self, product_id, product_qty, product_uom, values, line, partner
|
self, product_id, product_qty, product_uom, company_id, values, line
|
||||||
):
|
):
|
||||||
vals = super()._update_purchase_order_line(
|
vals = super()._update_purchase_order_line(
|
||||||
product_id, product_qty, product_uom, values, line, partner
|
product_id, product_qty, product_uom, company_id, values, line
|
||||||
)
|
)
|
||||||
if "orderpoint_id" in values:
|
if "orderpoint_id" in values and values["orderpoint_id"].id:
|
||||||
vals["orderpoint_ids"] = [(4, values["orderpoint_id"].id)]
|
vals["orderpoint_ids"] = [(4, values["orderpoint_id"].id)]
|
||||||
# If the procurement was run by a stock move.
|
# If the procurement was run by a stock move.
|
||||||
elif "orderpoint_ids" in values:
|
elif "orderpoint_ids" in values:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2018 Eficent Business and IT Consulting Services, S.L.
|
# Copyright 2018-20 ForgeFlow S.L. (https://www.forgeflow.com)
|
||||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||||
|
|
||||||
from odoo import fields, models
|
from odoo import fields, models
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
* Jordi Ballester <jordi.ballester@eficent.com>
|
* Jordi Ballester <jordi.ballester@forgeflow.com>
|
||||||
* Kitti Upariphutthiphong. <kittiu@gmail.com> (http://ecosoft.co.th)
|
* Kitti Upariphutthiphong. <kittiu@gmail.com> (http://ecosoft.co.th)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2018 Eficent Business and IT Consulting Services S.L.
|
# Copyright 2018-20 ForgeFlow S.L. (https://www.forgeflow.com)
|
||||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0).
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0).
|
||||||
|
|
||||||
from odoo.tests import common
|
from odoo.tests import common
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<xpath expr="//div[@name='button_box']" position="inside">
|
<xpath expr="//div[@name='button_box']" position="inside">
|
||||||
|
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//field[@name='order_line']/form/sheet/notebook"
|
<xpath expr="//field[@name='order_line']/form//notebook"
|
||||||
position="inside">
|
position="inside">
|
||||||
<page name="orderpoints" string="Orderpoints"
|
<page name="orderpoints" string="Orderpoints"
|
||||||
groups="stock.group_stock_user">
|
groups="stock.group_stock_user">
|
||||||
|
|||||||
Reference in New Issue
Block a user