Odoo 9.0C: How can i access the value of a many2one field (that has been created in sale.order.line module on the invoice qweb report?
问题 I have installed module Sale Sourced by Line by Camptocamp, Eficent, SerpentCS, Odoo Community Association (OCA) for Odoo 9.0. The module creates a new many2one field as the code bellow: class SaleOrderLine(models.Model): _inherit = 'sale.order.line' warehouse_id = fields.Many2one( 'stock.warehouse', 'Source Warehouse', readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, help="If a source warehouse is selected, " "it will be used to define the route. "