-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] sale_properties: Add sale_properties module
- Loading branch information
Showing
7 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
'name': 'Sale Properties', | ||
'version': "17.0.1.0.0", | ||
'summary': '', | ||
'author': 'ADHOC SA', | ||
'website': 'www.adhoc.com.ar', | ||
'license': 'AGPL-3', | ||
'images': [ | ||
], | ||
'depends': [ | ||
'crm', | ||
'sale_management' | ||
], | ||
'data': [ | ||
'views/sale_order_views.xml', | ||
], | ||
'installable': True, | ||
'auto_install': False, | ||
'application': False, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import crm_team | ||
from . import sale_order |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from odoo import fields, models | ||
|
||
class CrmTeam(models.Model): | ||
_inherit = 'crm.team' | ||
|
||
so_properties_definition = fields.PropertiesDefinition('Properties Definition') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from odoo import fields, models | ||
|
||
class SaleOrder(models.Model): | ||
_inherit = 'sale.order' | ||
|
||
sale_properties = fields.Properties( | ||
string='Sale Properties', | ||
definition='team_id.so_properties_definition' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<record id="sale_order_tree" model="ir.ui.view"> | ||
<field name="name">sale.order.tree.inherit.website.sale</field> | ||
<field name="model">sale.order</field> | ||
<field name="inherit_id" ref="sale.sale_order_tree"/> | ||
<field name="arch" type="xml"> | ||
<field name="invoice_status" position="after"> | ||
<field name="sale_properties"/> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
|
||
<record id="sale_order_form_properties" model="ir.ui.view"> | ||
<field name="name">sale.order.inherited.form.properties</field> | ||
<field name="model">sale.order</field> | ||
<field name="inherit_id" ref="sale.view_order_form"/> | ||
<field name="arch" type="xml"> | ||
<field name="sale_order_template_id" position="after"> | ||
<field name="sale_properties" columns="2"/> | ||
</field> | ||
</field> | ||
</record> | ||
</odoo> |