Skip to content

Commit

Permalink
[REL] Migrate & integrate portal_sale_order_type in sale_order_type_u…
Browse files Browse the repository at this point in the history
…x. (#145)

* [REL] Migrate & integrate portal_sale_order_type in sale_order_type_ux.

* [REM] portal_sale_order_type integrated to sale_order_type_ux.
  • Loading branch information
ValentinoDefelice authored and jjscarafia committed Jul 31, 2018
1 parent 8c2be4d commit 9175dfb
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 140 deletions.
75 changes: 0 additions & 75 deletions portal_sale_order_type/README.rst

This file was deleted.

4 changes: 0 additions & 4 deletions portal_sale_order_type/__init__.py

This file was deleted.

41 changes: 0 additions & 41 deletions portal_sale_order_type/__manifest__.py

This file was deleted.

18 changes: 0 additions & 18 deletions portal_sale_order_type/views/sale_order_view.xml

This file was deleted.

1 change: 1 addition & 0 deletions sale_order_type_ux/.vscode/settings.json
@@ -0,0 +1 @@
{}
5 changes: 4 additions & 1 deletion sale_order_type_ux/README.rst
Expand Up @@ -14,8 +14,11 @@
Sale Order Type Ux
===================

This module adds in the list view of sale.order.type the field sequence to be able to sort by that field.
* This module adds in the list view of sale.order.type the field sequence to be able to sort by that field.
* Integration betweeen Portal and Sale Order Type module:

- New access record to sale type model for portal users
- Make invisible sale order type for portal users

Installation
============
Expand Down
4 changes: 3 additions & 1 deletion sale_order_type_ux/__manifest__.py
Expand Up @@ -31,7 +31,9 @@
'sale_order_type',
],
'data': [
'views/sale_order_type_views.xml'
'security/ir.model.access.csv',
'views/sale_order_type_views.xml',
'views/sale_order_views.xml',
],
'demo': [
],
Expand Down
14 changes: 14 additions & 0 deletions sale_order_type_ux/views/sale_order_views.xml
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<odoo>
<record id="sot_view_order_form" model="ir.ui.view">
<field name="name">portal sale.order.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale_order_type.sot_view_order_form"/>
<field name="groups_id" eval="[(4, ref('base.group_portal'))]"/>
<field name="arch" type="xml">
<field name="type_id" position="attributes">
<attribute name="invisible">1</attribute>
</field>
</field>
</record>
</odoo>

0 comments on commit 9175dfb

Please sign in to comment.