Add purchase_order_line_menu

This commit is contained in:
hparfr
2018-04-11 09:25:04 +02:00
parent d547fd6916
commit 4f10be1bfe
7 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import purchase_order

View File

@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
# Copyright 2018 Raphael Reverdy https://akretion.com
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
import odoo.addons.decimal_precision as dp
class PurchaseOrderLine(models.Model):
_inherit = 'purchase.order.line'
po_name = fields.Char(string="Order", related='order_id.name', store=True)
class PurchaseOrder(models.Model):
_inherit = 'purchase.order'
pass