@ -0,0 +1,51 @@ |
|||
.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg |
|||
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html |
|||
:alt: License: LGPL-3 |
|||
|
|||
Purchase Order Line View |
|||
======================== |
|||
This module helps to view the purchase order and RFQ order line |
|||
|
|||
Configuration |
|||
============= |
|||
No additional configuration required |
|||
|
|||
Company |
|||
------- |
|||
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
|||
|
|||
License |
|||
------- |
|||
General Public License, Version 3 (LGPL v3). |
|||
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) |
|||
|
|||
Credits |
|||
------- |
|||
* Developers: |
|||
(V16): Sreeshanth V S @cybrosys |
|||
(V17): ASWIN A K @cybrosys |
|||
(V18): Nivedhya T |
|||
Contacts : odoo@cybrosys.com |
|||
|
|||
Contacts |
|||
-------- |
|||
* Mail Contact : odoo@cybrosys.com |
|||
* Website : https://cybrosys.com |
|||
|
|||
Bug Tracker |
|||
----------- |
|||
Bugs are tracked on GitHub Issues. In case of trouble, please check there if |
|||
your issue has already been reported. |
|||
|
|||
Maintainer |
|||
========== |
|||
.. image:: https://cybrosys.com/images/logo.png |
|||
:target: https://cybrosys.com |
|||
|
|||
This module is maintained by Cybrosys Technologies. |
|||
|
|||
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
|||
|
|||
Further information |
|||
=================== |
|||
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import models |
@ -0,0 +1,49 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
{ |
|||
'name': "Purchase Order Line View", |
|||
"category": "Purchases", |
|||
"version": "18.0.1.0.0", |
|||
"description": "View the purchase order and RFQ order line", |
|||
"summary": "Access purchase order lines and" |
|||
" RFQs through various intuitive views " |
|||
"including tree view, kanban, calendar, pivot, and graph. " |
|||
"Effortlessly navigate between different perspectives " |
|||
"for enhanced visualization and analysis.", |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': "https://www.cybrosys.com", |
|||
'depends': ['purchase'], |
|||
'data': [ |
|||
"views/purchase_order_line_views.xml", |
|||
'views/rfq_line_views.xml', |
|||
], |
|||
'images': [ |
|||
'static/description/banner.jpg' |
|||
], |
|||
'license': 'LGPL-3', |
|||
'installable': True, |
|||
'application': False, |
|||
'auto_install': False, |
|||
} |
|||
|
@ -0,0 +1,6 @@ |
|||
## Module <purchase_line_views> |
|||
|
|||
#### 08.11.2024 |
|||
#### Version 18.0.1.0.0 |
|||
#### ADD |
|||
- Initial commit for Purchase Order Line View |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import purchase_order_line |
@ -0,0 +1,45 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import api, fields, models, _ |
|||
from odoo.exceptions import UserError |
|||
|
|||
|
|||
class PurchaseOrderLine(models.Model): |
|||
""" For adding product image directly |
|||
to purchase order line from product""" |
|||
|
|||
_inherit = 'purchase.order.line' |
|||
|
|||
product_image = fields.Binary( |
|||
related="product_id.image_1920", |
|||
string="Image", |
|||
help='For getting product image ' |
|||
'to purchase order line') |
|||
|
|||
@api.onchange('order_id') |
|||
def _onchange_order_id(self): |
|||
""" Restrict creating purchase order line for purchase order |
|||
in locked,cancel and purchase order states""" |
|||
|
|||
if self.order_id.state in ['cancel', 'done', 'purchase']: |
|||
raise UserError(_("You cannot select purchase order in " |
|||
"cancel or locked or purchase order state")) |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 628 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 209 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 929 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 355 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 600 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 926 B |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 800 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 875 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 193 KiB |
After Width: | Height: | Size: 93 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 97 KiB |
After Width: | Height: | Size: 96 KiB |
After Width: | Height: | Size: 107 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 66 KiB |
After Width: | Height: | Size: 98 KiB |
After Width: | Height: | Size: 106 KiB |
After Width: | Height: | Size: 73 KiB |
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 186 KiB |
After Width: | Height: | Size: 180 KiB |
After Width: | Height: | Size: 110 KiB |
After Width: | Height: | Size: 880 KiB |
After Width: | Height: | Size: 730 KiB |
After Width: | Height: | Size: 42 KiB |
@ -0,0 +1,199 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!--Purchase order line search view for disabling filter based on the state --> |
|||
<record id="purchase_order_line_search" |
|||
model="ir.ui.view"> |
|||
<field name="name">purchase.order.line.view.search.inherit.purchase_line_views</field> |
|||
<field name="model">purchase.order.line</field> |
|||
<field name="inherit_id" |
|||
ref="purchase.purchase_order_line_search"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//filter[@name='purchase_state']" position="attributes"> |
|||
<attribute name="invisible">1</attribute> |
|||
</xpath> |
|||
<xpath expr="//filter[@name='hide_cancelled']" |
|||
position="attributes"> |
|||
<attribute name="invisible">1</attribute> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- Purchase order line tree view--> |
|||
<record id="purchase_order_line_tree_view" model="ir.ui.view"> |
|||
<field name="name">purchase.order.line.list.view</field> |
|||
<field name="model">purchase.order.line</field> |
|||
<field name="arch" type="xml"> |
|||
<list> |
|||
<field name="order_id"/> |
|||
<field name="partner_id"/> |
|||
<field name="product_id"/> |
|||
<field name="name"/> |
|||
<field name="date_order"/> |
|||
<field name="date_planned" optional="hide"/> |
|||
<field name="product_qty"/> |
|||
<field name="price_unit"/> |
|||
<field name="product_uom" optional="hide"/> |
|||
<field name="price_subtotal" optional="show" widget="monetary" sum="Total"/> |
|||
<field name="currency_id" column_invisible="True"/> |
|||
<field name="taxes_id" optional="hide"/> |
|||
<field name="state" widget="badge" |
|||
decoration-success="state == 'purchase' or state == 'done'"/> |
|||
</list> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- Purchase order line form view--> |
|||
<record id="purchase_order_line_form_view" model="ir.ui.view"> |
|||
<field name="name">Purchase.order.line.form.view</field> |
|||
<field name="model">purchase.order.line</field> |
|||
<field name="arch" type="xml"> |
|||
<form> |
|||
<sheet> |
|||
<group> |
|||
<field name="product_image" widget="image" |
|||
class="oe_avatar" string=""/> |
|||
</group> |
|||
<group> |
|||
<group> |
|||
<field name="order_id" string="Order"/> |
|||
<field name="product_id"/> |
|||
<field name="product_uom"/> |
|||
<field name="product_qty" |
|||
string="Ordered Qty"/> |
|||
<field name="taxes_id" |
|||
widget="many2many_tags"/> |
|||
<field name="price_subtotal"/> |
|||
</group> |
|||
<group> |
|||
<field name="partner_id"/> |
|||
<field name="name"/> |
|||
<field name="price_unit"/> |
|||
<field name="date_planned" |
|||
string="Delivery Date"/> |
|||
<field name="product_uom_category_id" |
|||
string="Category"/> |
|||
<field name="company_id"/> |
|||
</group> |
|||
</group> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- Purchase order line kanban view --> |
|||
<record id="purchase_order_line_kanban_view" model="ir.ui.view"> |
|||
<field name="name">purchase.order.line.kanban.view</field> |
|||
<field name="model">purchase.order.line</field> |
|||
<field name="arch" type="xml"> |
|||
<kanban default_group_by="partner_id"> |
|||
<field name="partner_id" readonly="1"/>> |
|||
<templates> |
|||
<t t-name="kanban-box"> |
|||
<div class="oe_kanban_card oe_kanban_global_click"> |
|||
<div class="o_kanban_image me-1"> |
|||
<field name="product_image" |
|||
widget="image"/> |
|||
</div> |
|||
<div class="oe_kanban_details"> |
|||
<div class="o_kanban_record_top mb-0"> |
|||
<div class="o_kanban_record_headings"> |
|||
<strong class="o_kanban_record_title"> |
|||
Order: |
|||
<field name="order_id"/> |
|||
</strong> |
|||
</div> |
|||
</div> |
|||
<div name="product_lst_price" |
|||
class="mt-1"> |
|||
Vendor: |
|||
<field name="partner_id"/> |
|||
</div> |
|||
Product: |
|||
<field name="product_id"/> |
|||
<div> |
|||
Price |
|||
<field name="price_unit"/> |
|||
</div> |
|||
<div> |
|||
Quantity: |
|||
<field name="product_qty"/> |
|||
</div> |
|||
State: |
|||
<field name="state" widget="badge"/> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
</templates> |
|||
</kanban> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- Purchase order line pivot view --> |
|||
<record id="purchase_order_line_pivot_view_pivot" model="ir.ui.view"> |
|||
<field name="name">purchase order pivot</field> |
|||
<field name="model">purchase.order.line</field> |
|||
<field name="arch" type="xml"> |
|||
<pivot string="Pivot View" sample="1"> |
|||
<field name="order_id" type="row"/> |
|||
<field name="product_id" type="row"/> |
|||
<field name="product_qty" type="measure"/> |
|||
<field name="price_unit" type="measure"/> |
|||
</pivot> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- Purchase order line graph view --> |
|||
<record id="purchase_order_line_graph_view" model="ir.ui.view"> |
|||
<field name="name">purchase.order.line.graph.view</field> |
|||
<field name="model">purchase.order.line</field> |
|||
<field name="arch" type="xml"> |
|||
<graph string="Graph View" type="bar"> |
|||
<field name="product_id" group="True"/> |
|||
<field name="price_unit" type="measure"/> |
|||
</graph> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- Purchase order line calendar view --> |
|||
<record id="bill_line_calender_view" model="ir.ui.view"> |
|||
<field name="name">bill.line.calender</field> |
|||
<field name="model">purchase.order.line</field> |
|||
<field name="arch" type="xml"> |
|||
<calendar date_start="date_order" string="Tasks"> |
|||
<field name="order_id"/> |
|||
<field name="product_id"/> |
|||
<field name="partner_id"/> |
|||
</calendar> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- Purchase order line action --> |
|||
<record id="action_purchase_order_line_view" |
|||
model="ir.actions.act_window"> |
|||
<field name="name">Purchase Order line</field> |
|||
<field name="res_model">purchase.order.line</field> |
|||
<field name="view_mode">list,form,kanban,pivot,graph</field> |
|||
<field name="domain"> |
|||
[('state','=','purchase')] |
|||
</field> |
|||
<field name="view_ids" eval="[Command.clear(), |
|||
Command.create({'view_mode': 'list', 'view_id': ref('purchase_order_line_tree_view')}), |
|||
Command.create({'view_mode': 'kanban', 'view_id': ref('purchase_order_line_kanban_view')}), |
|||
Command.create({'view_mode': 'pivot', 'view_id': ref('purchase_order_line_pivot_view_pivot')}), |
|||
Command.create({'view_mode': 'graph', 'view_id': ref('purchase_order_line_graph_view')}), |
|||
Command.create({'view_mode': 'calendar', 'view_id': ref('bill_line_calender_view')}), |
|||
Command.create({'view_mode': 'form', 'view_id': ref('purchase_order_line_form_view')}),]"/> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
Purchase Order Line Views |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- Menu for the purchase order line --> |
|||
<menuitem id="menu_purchase_order_line_view" name="Purchase Order Line" |
|||
sequence="300" |
|||
parent="purchase.menu_procurement_management" |
|||
action="action_purchase_order_line_view"> |
|||
</menuitem> |
|||
</odoo> |
@ -0,0 +1,142 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!-- RFQ line list view --> |
|||
<record id="rfq_line_tree_view" model="ir.ui.view"> |
|||
<field name="name">rfq.line.tree view</field> |
|||
<field name="model">purchase.order.line</field> |
|||
<field name="arch" type="xml"> |
|||
<list> |
|||
<field name="order_id"/> |
|||
<field name="partner_id"/> |
|||
<field name="product_id"/> |
|||
<field name="name"/> |
|||
<field name="date_order"/> |
|||
<field name="date_planned" optional="hide"/> |
|||
<field name="product_qty"/> |
|||
<field name="price_unit"/> |
|||
<field name="product_uom" optional="hide"/> |
|||
<field name="price_subtotal" optional="show" widget="monetary" sum="Total"/> |
|||
<field name="currency_id" column_invisible="True"/> |
|||
<field name="taxes_id" optional="hide"/> |
|||
<field name="state" widget="badge" decoration-info="state == 'draft'"/> |
|||
</list> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- RFQ line kanban view --> |
|||
<record id="rfq_line_kanban_view" model="ir.ui.view"> |
|||
<field name="name">rfq.line.kanban.view</field> |
|||
<field name="model">purchase.order.line</field> |
|||
<field name="arch" type="xml"> |
|||
<kanban default_group_by="partner_id"> |
|||
<field name="partner_id" readonly="1"/>> |
|||
<templates> |
|||
<t t-name="kanban-box"> |
|||
<div class="oe_kanban_card oe_kanban_global_click"> |
|||
<div class="o_kanban_image me-1"> |
|||
<field name="product_image" |
|||
widget="image"/> |
|||
</div> |
|||
<div class="oe_kanban_details"> |
|||
<div class="o_kanban_record_top mb-0"> |
|||
<div class="o_kanban_record_headings"> |
|||
<strong class="o_kanban_record_title"> |
|||
Order: |
|||
<field name="order_id"/> |
|||
</strong> |
|||
</div> |
|||
</div> |
|||
<div name="product_lst_price" |
|||
class="mt-1"> |
|||
Vendor: |
|||
<field name="partner_id"/> |
|||
</div> |
|||
Product: |
|||
<field name="product_id"/> |
|||
<div> |
|||
Price |
|||
<field name="price_unit"/> |
|||
</div> |
|||
<div> |
|||
Quantity: |
|||
<field name="product_qty"/> |
|||
</div> |
|||
State: |
|||
<field name="state" widget="badge"/> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
</templates> |
|||
</kanban> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- RFQ line pivot view --> |
|||
<record id="rfq_line_pivot_view_pivot" model="ir.ui.view"> |
|||
<field name="name">rfq pivot</field> |
|||
<field name="model">purchase.order.line</field> |
|||
<field name="arch" type="xml"> |
|||
<pivot string="Pivot View" sample="1"> |
|||
<field name="order_id" type="row"/> |
|||
<field name="product_id" type="row"/> |
|||
<field name="product_qty" type="measure"/> |
|||
<field name="price_unit" type="measure"/> |
|||
</pivot> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- RFQ line graph view --> |
|||
<record id="rfq_line_graph_view" model="ir.ui.view"> |
|||
<field name="name">rfq.line.graph.view</field> |
|||
<field name="model">purchase.order.line</field> |
|||
<field name="arch" type="xml"> |
|||
<graph string="Graph View" type="bar"> |
|||
<field name="product_id" group="True"/> |
|||
<field name="price_unit" type="measure"/> |
|||
</graph> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- RFQ line calender view --> |
|||
<record id="rfq_line_calender_view" model="ir.ui.view"> |
|||
<field name="name">rfq.line.calender</field> |
|||
<field name="model">purchase.order.line</field> |
|||
<field name="arch" type="xml"> |
|||
<calendar date_start="date_order" string="Tasks"> |
|||
<field name="order_id"/> |
|||
<field name="product_id"/> |
|||
<field name="partner_id"/> |
|||
</calendar> |
|||
</field> |
|||
</record> |
|||
|
|||
<!--Action for RFQ line --> |
|||
<record id="action_rfq_order_line_view" |
|||
model="ir.actions.act_window"> |
|||
<field name="name">RFQ line</field> |
|||
<field name="res_model">purchase.order.line</field> |
|||
<field name="view_mode">list,form,kanban,pivot,graph</field> |
|||
<field name="domain"> |
|||
[('state','=','draft')] |
|||
</field> |
|||
<field name="view_ids" eval="[Command.clear(), |
|||
Command.create({'view_mode': 'list', 'view_id': ref('rfq_line_tree_view')}), |
|||
Command.create({'view_mode': 'kanban', 'view_id': ref('rfq_line_kanban_view')}), |
|||
Command.create({'view_mode': 'pivot', 'view_id': ref('rfq_line_pivot_view_pivot')}), |
|||
Command.create({'view_mode': 'graph', 'view_id': ref('rfq_line_graph_view')}), |
|||
Command.create({'view_mode': 'calendar', 'view_id': ref('rfq_line_calender_view')}),]"/> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
RFQ Line Views |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- Menu for RFQ line --> |
|||
<menuitem id="menu_rfq_line_view" name="RFQ Line" |
|||
sequence="310" |
|||
parent="purchase.menu_procurement_management" |
|||
action="action_rfq_order_line_view"> |
|||
</menuitem> |
|||
|
|||
</odoo> |