Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
5432 Widoki

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??

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 15
6608
0
wrz 23
1620
0
wrz 22
1562
0
lut 21
2756
1
sie 19
5572