mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[11.0] stock_orderpoint_purchase_link: add corresponding field to PO lines on orderpoint
This commit is contained in:
committed by
Dũng (Trần Đình)
parent
b7219c4093
commit
ba7ff47f62
@@ -1,10 +1,10 @@
|
||||
# Copyright 2017 Eficent Business and IT Consulting Services, S.L.
|
||||
# Copyright 2018 Eficent Business and IT Consulting Services, S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
{
|
||||
"name": "Stock Orderpoint Purchase Link",
|
||||
"summary": "Link Reordering rules to purchase orders",
|
||||
"version": "11.0.1.0.0",
|
||||
"version": "11.0.1.0.1",
|
||||
"license": "LGPL-3",
|
||||
"website": "https://github.com/stock-logistics-warehouse",
|
||||
"author": "Eficent, "
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
from . import purchase_order_line
|
||||
from . import procurement_rule
|
||||
from . import stock_warehouse_orderpoint
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2017 Eficent Business and IT Consulting Services, S.L.
|
||||
# Copyright 2018 Eficent Business and IT Consulting Services, S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from odoo import models
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2017 Eficent Business and IT Consulting Services, S.L.
|
||||
# Copyright 2018 Eficent Business and IT Consulting Services, S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from odoo import fields, models
|
||||
@@ -9,4 +9,6 @@ class PurchaseOrderLine(models.Model):
|
||||
|
||||
orderpoint_ids = fields.Many2many(
|
||||
comodel_name='stock.warehouse.orderpoint',
|
||||
string='Orderpoints', copy=False)
|
||||
string='Orderpoints', copy=False,
|
||||
readonly=True,
|
||||
)
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
# Copyright 2018 Eficent Business and IT Consulting Services, S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class StockWarehouseOrderpoint(models.Model):
|
||||
_inherit = 'stock.warehouse.orderpoint'
|
||||
|
||||
purchase_line_ids = fields.Many2many(
|
||||
comodel_name='purchase.order.line',
|
||||
string='Purchase Order Lines', copy=False,
|
||||
readonly=True,
|
||||
)
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Copyright 2016 Eficent Business and IT Consulting Services S.L.
|
||||
<!-- Copyright 2018 Eficent Business and IT Consulting Services S.L.
|
||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl-3.0) -->
|
||||
<odoo>
|
||||
<record id="purchase_order_form" model="ir.ui.view">
|
||||
|
||||
Reference in New Issue
Block a user