_columns = {
'name': fields.char('Order Reference', size=64, required=True,
readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, select=True),
'shop_id': fields.many2one('sale.shop', 'Shop', required=True, readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}),
'origin': fields.char('Source Document', size=64, help="Reference of the document that generated this sales order request."),
'client_order_ref': fields.char('Customer Reference', size=64),
'state': fields.selection([
('draft', 'Draft Quotation'),
('sent', 'Quotation Sent'),
('cancel', 'Cancelled'),
('waiting_date', 'Waiting Schedule'),
('progress', 'Sales Order'),
('manual', 'Sale to Invoice'),
('invoice_except', 'Invoice Exception'),
('done', 'Done'),
], 'Status', readonly=True, track_visibility='onchange',
help="Gives the status of the quotation or sales order. \nThe exception status is automatically set when a cancel operation occurs in the processing of a document linked to the sales order. \nThe 'Waiting Schedule' status is set when the invoice is confirmed but waiting for the scheduler to run on the order date.", select=True),
'date_order': fields.date('Date', required=True, readonly=True, select=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}),
'create_date': fields.datetime('Creation Date', readonly=True, select=True, help="Date on which sales order is created."),
'date_confirm': fields.date('Confirmation Date', readonly=True, select=True, help="Date on which sales order is confirmed."),
'user_id': fields.many2one('res.users', 'Salesperson', states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, select=True, track_visibility='onchange'),
'partner_id': fields.many2one('res.partner', 'Customer', readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, required=True, change_default=True, select=True, track_visibility='always'),
'partner_invoice_id': fields.many2one('res.partner', 'Invoice Address', readonly=True, required=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, help="Invoice address for current sales order."),
'partner_shipping_id': fields.many2one('res.partner', 'Delivery Address', readonly=True, required=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, help="Delivery address for current sales order."),
'order_policy': fields.selection([
('manual', 'On Demand'),
], 'Create Invoice', required=True, readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]},
help="""This field controls how invoice and delivery operations are synchronized."""),
'pricelist_id': fields.many2one('product.pricelist', 'Pricelist', required=True, readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, help="Pricelist for current sales order."),
'currency_id': fields.related('pricelist_id', 'currency_id', type="many2one", relation="res.currency", string="Currency", readonly=True, required=True),
'project_id': fields.many2one('account.analytic.account', 'Contract / Analytic', readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, help="The analytic account related to a sales order."),
'order_line': fields.one2many('sale.order.line', 'order_id', 'Order Lines', readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}),
'invoice_ids': fields.many2many('account.invoice', 'sale_order_invoice_rel', 'order_id', 'invoice_id', 'Invoices', readonly=True, help="This is the list of invoices that have been generated for this sales order. The same sales order may have been invoiced in several times (by line for example)."),
'invoiced_rate': fields.function(_invoiced_rate, string='Invoiced Ratio', type='float'),
'invoiced': fields.function(_invoiced, string='Paid',
fnct_search=_invoiced_search, type='boolean', help="It indicates that an invoice has been paid."),
'invoice_exists': fields.function(_invoice_exists, string='Invoiced',
fnct_search=_invoiced_search, type='boolean', help="It indicates that sales order has at least one invoice."),
'note': fields.text('Terms and conditions'),
'amount_untaxed': fields.function(_amount_all, digits_compute=dp.get_precision('Account'), string='Untaxed Amount',
store={
'sale.order': (lambda self, cr, uid, ids, c={}: ids, ['order_line'], 10),
'sale.order.line': (_get_order, ['price_unit', 'tax_id', 'discount', 'product_uom_qty'], 10),
},
multi='sums', help="The amount without tax.", track_visibility='always'),
'amount_tax': fields.function(_amount_all, digits_compute=dp.get_precision('Account'), string='Taxes',
store={
'sale.order': (lambda self, cr, uid, ids, c={}: ids, ['order_line'], 10),
'sale.order.line': (_get_order, ['price_unit', 'tax_id', 'discount', 'product_uom_qty'], 10),
},
multi='sums', help="The tax amount."),
'amount_total': fields.function(_amount_all, digits_compute=dp.get_precision('Account'), string='Total',
store={
'sale.order': (lambda self, cr, uid, ids, c={}: ids, ['order_line'], 10),
'sale.order.line': (_get_order, ['price_unit', 'tax_id', 'discount', 'product_uom_qty'], 10),
},
multi='sums', help="The total amount."),
'invoice_quantity': fields.selection([('order', 'Ordered Quantities')], 'Invoice on', help="The sales order will automatically create the invoice proposition (draft invoice).", required=True, readonly=True, states={'draft': [('readonly', False)]}),
'payment_term': fields.many2one('account.payment.term', 'Payment Term'),
'fiscal_position': fields.many2one('account.fiscal.position', 'Fiscal Position'),
'company_id': fields.related('shop_id','company_id',type='many2one',relation='res.company',string='Company',store=True,readonly=True),
'x_paciente': fields.related('x_name','x_paciente',type='many2one',relation='x_ref.interna',string='Paciente',store=True,readonly=True),
}
Luego rearrancamos servidor y el LOG no da ninguna informacion?
2014-05-06 22:58:52,760 16127 INFO IQPROD openerp.service.web_services: successful login from 'admin' using database 'iqprod'
2014-05-06 22:58:52,762 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:52] "POST /web/session/get_session_info HTTP/1.1" 200 -
2014-05-06 22:58:52,806 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:52] "POST /web/webclient/qweblist HTTP/1.1" 200 -
2014-05-06 22:58:52,878 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:52] "POST /web/proxy/load HTTP/1.1" 200 -
2014-05-06 22:58:53,101 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/session/modules HTTP/1.1" 200 -
2014-05-06 22:58:53,136 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/webclient/translations HTTP/1.1" 200 -
2014-05-06 22:58:53,163 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "GET /web/binary/company_logo?session_id=ad48c4aa34644ada9497ef90a0790158 HTTP/1.1" 200 -
2014-05-06 22:58:53,213 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:53,251 16127 INFO ? werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "GET /web/static/src/font/entypo-webfont.ttf HTTP/1.1" 304 -
2014-05-06 22:58:53,279 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "GET /web/binary/image?model=res.users&field=image_small&id=1&session_id=ad48c4aa34644ada9497ef90a0790158 HTTP/1.1" 304 -
2014-05-06 22:58:53,281 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:53,287 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:53,292 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/action/load HTTP/1.1" 200 -
2014-05-06 22:58:53,324 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/dataset/search_read HTTP/1.1" 200 -
2014-05-06 22:58:53,335 16127 INFO ? werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "GET /web/static/src/font/mnmliconsv21-webfont.ttf HTTP/1.1" 304 -
2014-05-06 22:58:53,381 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:53,435 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:53,455 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:53,486 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:53,514 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:53,539 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:53,627 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/menu/load HTTP/1.1" 200 -
2014-05-06 22:58:53,707 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:53,857 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:53] "POST /web/dataset/search_read HTTP/1.1" 200 -
2014-05-06 22:58:54,041 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:54] "POST /web/menu/load_needaction HTTP/1.1" 200 -
2014-05-06 22:58:54,072 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:54] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:54,480 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:54] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:54,551 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:54] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:54,623 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:54] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:54,704 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:54] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:54,756 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:54] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:54,835 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:54] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:54,854 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:54] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:54,897 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:54] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:54,948 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:54] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:54,953 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:54] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:54,996 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:54] "POST /web/dataset/search_read HTTP/1.1" 200 -
2014-05-06 22:58:55,020 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:55] "POST /web/dataset/search_read HTTP/1.1" 200 -
2014-05-06 22:58:55,022 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:55] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:55,022 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:55] "POST /web/dataset/search_read HTTP/1.1" 200 -
2014-05-06 22:58:55,024 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:55] "POST /web/dataset/search_read HTTP/1.1" 200 -
2014-05-06 22:58:57,689 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:57] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:58,713 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:58] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:58,721 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:58] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:58,754 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:58] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:58,782 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:58] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:58,784 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:58] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:58:58,846 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:58:58] "POST /web/dataset/call_kw HTTP/1.1" 200 -
2014-05-06 22:59:02,322 16127 INFO IQPROD werkzeug: 178.33.164.134 - - [06/May/2014 22:59:02] "POST /web/dataset/call_kw HTTP/1.1" 200 -
Alguna aportación?...me he dejado algo?
Muchísimas gracias por vuestra aportación.
Un saludo
Juan