feat: add contextual note field to sale order
This commit is contained in:
Vendored
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
from . import models
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
'name': 'Sale Order Contextual Note',
|
||||||
|
'version': '16.0.1.0.0',
|
||||||
|
'category': 'Sales',
|
||||||
|
'summary': 'Adds a contextual note field to sale orders',
|
||||||
|
'author': 'DomusLavila',
|
||||||
|
'depends': ['sale_management'],
|
||||||
|
'data': [
|
||||||
|
'views/sale_order_contextual_view.xml',
|
||||||
|
],
|
||||||
|
'installable': True,
|
||||||
|
'auto_install': False,
|
||||||
|
'license': 'OPL-1',
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
from . import sale_order_contextual
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
from odoo import fields, models
|
||||||
|
|
||||||
|
|
||||||
|
class SaleOrderContextual(models.Model):
|
||||||
|
_inherit = 'sale.order'
|
||||||
|
|
||||||
|
contextual_note = fields.Text(
|
||||||
|
string='Contextuele opmerking',
|
||||||
|
)
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<odoo>
|
||||||
|
<record id="sale_order_contextual_view_form" model="ir.ui.view">
|
||||||
|
<field name="name">sale.order.contextual.note.form</field>
|
||||||
|
<field name="model">sale.order</field>
|
||||||
|
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<xpath expr="//notebook" position="inside">
|
||||||
|
<page string="Contextual" name="contextual_note_page">
|
||||||
|
<field name="contextual_note" nolabel="1"/>
|
||||||
|
</page>
|
||||||
|
</xpath>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</odoo>
|
||||||
Reference in New Issue
Block a user