Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.0][IMP] sale_order_secondary_unit: Add security group #826

Merged

Conversation

sergio-teruel
Copy link
Contributor

@sergio-teruel sergio-teruel commented Apr 15, 2019

cc @Tecnativa
This PR depends of OCA/product-attribute#445

@pedrobaeza pedrobaeza added this to the 11.0 milestone Apr 15, 2019
view_product_template = env.ref(
'sale_order_secondary_unit.product_template_form_view')
view_product_template.write({
'groups_id': [(3, group_uom.id)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't enough with putting in the XML groups_id empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had two options, one is puting in the xml groups_id = [(5,0), (4, ref('new_group'))] and the other in a post_migration remove the old security group. I have chosen the second.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But this technique on views seems a bit weird, and most being noupdate=0. Even more, groups_id in views doesn't use (4, terminology if I don't remember bad, but directly use the ref of the group.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's continue this way as I'm not sure.

@sergio-teruel
Copy link
Contributor Author

How can I restart the CI?

@pedrobaeza
Copy link
Member

pedrobaeza commented Apr 17, 2019

I have forced a rebuild on runbot

@pedrobaeza pedrobaeza merged commit dccf603 into OCA:11.0 Apr 27, 2019
@pedrobaeza pedrobaeza deleted the 11.0-PR-sale_order_secondary_unit-security branch April 27, 2019 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants