Add purchase_order_line_menu
This commit is contained in:
3
purchase_order_line_menu/models/__init__.py
Normal file
3
purchase_order_line_menu/models/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import purchase_order
|
||||
17
purchase_order_line_menu/models/purchase_order.py
Normal file
17
purchase_order_line_menu/models/purchase_order.py
Normal 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
|
||||
Reference in New Issue
Block a user