Odoo 도움말

0

0
6 응답
1
Avatar

Dipak Shah India

--Dipak Shah--

5424
| 6 3 9
Vadodara, Gujarat, India
--Dipak Shah--


Dipak Shah India
19. 7. 5. 오전 10:02

Hello,

This will help you.

PS : Tested in v10. and replace your object in super call with your object where you want to remove the sheet.


@api.model

def fields_view_get(self, view_id=None, view_type='form', toolbar=False,submenu=False):
    res = super(Picking, self).fields_view_get(
    view_id, view_type, toolbar, submenu)
    if view_type == 'form' and 'arch' in res:
        xml_arch_data = res['arch']
        xml_arch_data = xml_arch_data.replace('', '')
        final_xml_data = xml_arch_data.replace('', '')
        res['arch'] = final_xml_data
    return res


Thanks,

1 코멘트
Métal Sartigan, Jérôme Thériault 캐나다
19. 8. 19. 오후 12:43

This... removes the commas in the arch node? Twice? WHAT!?

0
Jérôme Thériault 캐나다
19. 8. 19. 오후 12:53

Without removing the tags, you can expand the sheet width to the maximum with this small module:

https://www.odoo.com/apps/modules/11.0/web_sheet_full_width/

If you're using v12.0, this module has been integrated in this other module:

https://www.odoo.com/apps/modules/12.0/web_responsive/

-1
Avatar

Jagdish Panchal India

--Jagdish Panchal--

2776
| 6 4 8
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal India
19. 7. 5. 오전 8:37

Hello

Yes you can remove using fields_view_get method

1 코멘트
Tabla d.o.o., Samo Arko Slovenia
19. 7. 5. 오전 8:47

an example would be nice

질문하기
Writer
Keep Informed
1 팔로워
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now