Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5605 Zobrazení

Here is what I did:

class pos_order_line(osv.osv):
    _inherit = "pos.order.line"
    _columns = {
        'order_line_state_id': fields.many2one('pos.order.line.state', "Order Line State"),
    }

class pos_order_line_state(osv.osv):
    _name = "pos.order.line.state"

    _columns = {
        'name': fields.char('Name', size=18),
        'sequence': fields.integer('Sequence'),
    }

And in javascript I do:

var order = this.pos.get('selectedOrder');    
var line = order.getSelectedLine();

But line doesn't have order_line_state_id even though the column is in the database (checked with PGadminIII)

What am I doing wrong??

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
lis 15
6737
0
zář 23
1715
0
zář 22
1629
0
úno 21
2849
1
srp 19
5669