[FIX]GOLEM Resource Option : should not see other options on own definition list on ressource form

This commit is contained in:
Fabien BOURGEOIS 2018-03-29 10:02:41 +02:00
parent 350ff3e52a
commit f710947771
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@
'description': ''' GOLEM resources options management : 'description': ''' GOLEM resources options management :
- create 1:n options per resource ; - create 1:n options per resource ;
- choose option on reservations ''', - choose option on reservations ''',
'version': '10.0.0.1.0', 'version': '10.0.0.1.1',
'category': 'GOLEM', 'category': 'GOLEM',
'author': 'Youssef El Ouahby, Fabien Bourgeois', 'author': 'Youssef El Ouahby, Fabien Bourgeois',
'license': 'AGPL-3', 'license': 'AGPL-3',

View File

@ -27,6 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="product_tmpl_id" position="after"> <field name="product_tmpl_id" position="after">
<field name="option_ids" widget="many2many_tags" <field name="option_ids" widget="many2many_tags"
domain="[('resource_id', '=', active_id)]"
context="{'default_resource_id': active_id}" /> context="{'default_resource_id': active_id}" />
</field> </field>
</field> </field>