Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5049 Lượt xem

I'm trying to update the value of the "Attributes & Variants" checkbox within "Sales > Configuration > Settings > Products" of Odoo 10. I would like to check this box automatically when my module is installed. I thought I understood how to do this based on my research, but it's not working. I have seen the "duplicate" questions on this forum, but still am not able to get it to work.


Here are the contents of my data file:


    <odoo>

      <data>

        <record id="base.group_user" model="res.groups">

          <field name="implied_ids" eval="[(4, ref('product.group_product_variant'))]"/>

        </record>

      </data>

    </odoo>


There are no errors when I import my module, but when I look at the Employee group, the list of `implied_ids` has not changed. My product variant group is not there. The checkbox in sales settings is also not checked.


Does anyone know why this isn't working? I did notice when I view metadata for the Employees group that 'No Update' is set to `true`. Is this possibly why it's not updating? I did not think this was the purpose of the `noupdate` flag.


Also, when I manually add the "Technical Settings / Manage Product Variants" group to the list of implied_ids for the Employees group, the checkbox becomes checked. So I know I have the right group and the right approach, but something about my XML is not working.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 5 16
7759
3
thg 6 20
20527
2
thg 9 18
3590
2
thg 12 16
4919
1
thg 4 16
8079