Skip to content

Latest commit

 

History

History
51 lines (45 loc) · 1.5 KB

14-15-16.md

File metadata and controls

51 lines (45 loc) · 1.5 KB

14.0

1- Carga de estáticos

'qweb': [
        'static/src/xml/*.xml'
    ],

15.0

1- Carga de estáticos

'assets': {
        'web.assets_backend': [
            'base_bim_2/static/src/scss/hierarchy.scss',
            'base_bim_2/static/src/js/form_renderer.js',
            'base_bim_2/static/src/js/list_button_renderer.js',
            'base_bim_2/static/src/js/hierarchy.js',
            'base_bim_2/static/src/js/attendances.js',
        ],
        'web.assets_qweb': [
            'base_bim_2/static/src/xml/attendance.xml',
            'base_bim_2/static/src/xml/hierarchy.xml',
        ],
    },

16.0

1- Carga de estáticos

'assets': {
        'web.assets_backend': [
            'base_bim_2/static/src/scss/hierarchy.scss',
            'base_bim_2/static/src/js/form_renderer.js',
            'base_bim_2/static/src/js/list_button_renderer.js',
            'base_bim_2/static/src/js/hierarchy.js',
            'base_bim_2/static/src/js/attendances.js',
            'base_bim_2/static/src/xml/attendance.xml',
            'base_bim_2/static/src/xml/hierarchy.xml',
        ],
    },

2- Cada vez que tenemos un campo en un dominio que está restringido para grupo, hay que poner invisible

<field name="company_id" invisible="1"/>
                                <field name="company_id" groups="base.group_multi_company" options="{'no_open': True,'no_create': True, 'no_create_edit':True}"/>

<field name="journald_id" domain="[('company_id','=',company_id)]"/>