[11.0] stock_orderpoint_purchase_link: add corresponding field to PO lines on orderpoint

This commit is contained in:
Lois Rilo
2018-05-30 16:24:48 +02:00
committed by Dũng (Trần Đình)
parent b7219c4093
commit ba7ff47f62
6 changed files with 23 additions and 6 deletions

View File

@@ -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, "

View File

@@ -1,2 +1,3 @@
from . import purchase_order_line
from . import procurement_rule
from . import stock_warehouse_orderpoint

View File

@@ -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

View File

@@ -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,
)

View File

@@ -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,
)

View File

@@ -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">