Skip to Content

Contributors

Re: Porting sale_order_type to 17

Il giorno dom 19 nov 2023 alle ore 23:16 Francesco Ballerini
<notifications@odoo-community.org> ha scritto:

> although in Odoo17 I think this expression has to be changed into something like

>

> <field

>     name="type_id"

>     readonly="state not in ['sale', 'done', 'cancel']"

> />

>

> as a consequence of this commit.

Great idea, thank you

by gandalf.corvotempesta - 09:06 - 20 Nov 2023

Reference

  • Porting sale_order_type to 17
    Hi guys
    i'm trying to port sale_order_type module to Odoo 17
    (i'm not a python developer)
    
    I've done almost everything and now the module install properly (and
    seems to work properly too)
    But there are two things i don't know how to solve:
    
    1. group_display_incoterm was removed from sale_stock and thus the
    actually views used by sale_order_type doens't install properly. I've
    removed the reference to ' groups="sale_stock.group_display_incoterm"
    ' but I don't know if this is correct or has to be replaced with
    something else
    
    2. `states` are deprecated in 17. How can I replace these ?
    https://github.com/OCA/sale-workflow/blob/16.0/sale_order_type/models/sale.py#L20-L23
    
    Tnx
    

    by gandalf.corvotempesta - 06:57 - 19 Nov 2023