(self, )
return {
            'user_id': self.user_id.id,
            'company_id': self.company_id.id,
            'partner_id': self.partner_id.id,
            'partner_invoice_id': self.partner_invoice_id.id,
            'partner_shipping_id': self.partner_shipping_id.id,
            'prescription_order_id': self.prescription_order_id.id,
            'pricelist_id': self.pricelist_id.id,
            'pharmacy_id': self.pharmacy_id.id,
            'date_order': self.date_order,
            'client_order_ref': self.client_order_ref,
            'warehouse_id': self.warehouse_id.id,
            'state': 'progress',
            'order_line': self.order_line._to_insert(),
            'currency_id': self.currency_id.id,
            'origin': self.origin,
            'note': self.note,
            'section_id': self.section_id.id,
            'payment_term': self.payment_term.id,
            'fiscal_position': self.fiscal_position.id,
            'project_id': self.project_id.id,
        }
Return a values dictionary to create in real model
Return a values dictionary to create in real model
Return a values dictionary to create in real model
def _to_vals(self, ):
        ''' Return a values dictionary to create in real model '''
        self.ensure_one()
        return {
            'user_id': self.user_id.id,
            'company_id': self.company_id.id,
            'partner_id': self.partner_id.id,
            'partner_invoice_id': self.partner_invoice_id.id,
            'partner_shipping_id': self.partner_shipping_id.id,
            'prescription_order_id': self.prescription_order_id.id,
            'pricelist_id': self.pricelist_id.id,
            'pharmacy_id': self.pharmacy_id.id,
            'date_order': self.date_order,
            'client_order_ref': self.client_order_ref,
            'warehouse_id': self.warehouse_id.id,
            'state': 'progress',
            'order_line': self.order_line._to_insert(),
            'currency_id': self.currency_id.id,
            'origin': self.origin,
            'note': self.note,
            'section_id': self.section_id.id,
            'payment_term': self.payment_term.id,
            'fiscal_position': self.fiscal_position.id,
            'project_id': self.project_id.id,
        }
def _to_vals ( self , ) : self . ensure_one ( ) return { 'user_id' : self . user_id . id , 'company_id' : self . company_id . id , 'partner_id' : self . partner_id . id , 'partner_invoice_id' : self . partner_invoice_id . id , 'partner_shipping_id' : self . partner_shipping_id . id , 'prescription_order_id' : self . prescription_order_id . id , 'pricelist_id' : self . pricelist_id . id , 'pharmacy_id' : self . pharmacy_id . id , 'date_order' : self . date_order , 'client_order_ref' : self . client_order_ref , 'warehouse_id' : self . warehouse_id . id , 'state' : 'progress' , 'order_line' : self . order_line . _to_insert ( ) , 'currency_id' : self . currency_id . id , 'origin' : self . origin , 'note' : self . note , 'section_id' : self . section_id . id , 'payment_term' : self . payment_term . id , 'fiscal_position' : self . fiscal_position . id , 'project_id' : self . project_id . id , }