openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #02857
[Bug 903687] Re: [6.1] Yaml - impossible to create an invoice line with a reference
** Attachment added: "test.zip"
https://bugs.launchpad.net/bugs/903687/+attachment/2631272/+files/test.zip
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/903687
Title:
[6.1] Yaml - impossible to create an invoice line with a reference
Status in OpenERP Server:
New
Bug description:
Hello,
I am unable to create an invoice line with a record in yaml since on
change are called.
Even when refering to an invoice, the data isn't given to the
onchange.
In my case, the issue is the following one :
[2011-12-13 12:15:32,814][zz_yml_test] ERROR:tests.test:('No Partner Defined !', 'You must first select a partner !')
Traceback (most recent call last):
File "/home/yvaucher/Projects/lp_openerp_6.1/server/openerp/tools/yaml_import.py", line 844, in process
self._process_node(node)
File "/home/yvaucher/Projects/lp_openerp_6.1/server/openerp/tools/yaml_import.py", line 857, in _process_node
self.process_record(node)
File "/home/yvaucher/Projects/lp_openerp_6.1/server/openerp/tools/yaml_import.py", line 350, in process_record
record_dict = self._create_record(model, fields, view_id, default=default)
File "/home/yvaucher/Projects/lp_openerp_6.1/server/openerp/tools/yaml_import.py", line 428, in _create_record
result = getattr(model, match.group(1))(self.cr, 1, [], *args)
File "/home/yvaucher/Projects/lp_openerp_6.1/addons/account/account_invoice.py", line 1328, in product_id_change
raise osv.except_osv(_('No Partner Defined !'),_("You must first select a partner !") )
except_osv: ('No Partner Defined !', 'You must first select a partner !')
[2011-12-13 12:15:32,814][zz_yml_test] ERROR:init.test:Tests failed to execute in module test
Traceback (most recent call last):
File "/home/yvaucher/Projects/lp_openerp_6.1/server/openerp/modules/loading.py", line 102, in load_test
_load_data(cr, module_name, idref, mode, 'test')
File "/home/yvaucher/Projects/lp_openerp_6.1/server/openerp/modules/loading.py", line 138, in _load_data
tools.convert_yaml_import(cr, module_name, fp, idref, mode, noupdate)
File "/home/yvaucher/Projects/lp_openerp_6.1/server/openerp/tools/yaml_import.py", line 909, in yaml_import
yaml_interpreter.process(yaml_string)
File "/home/yvaucher/Projects/lp_openerp_6.1/server/openerp/tools/yaml_import.py", line 844, in process
self._process_node(node)
File "/home/yvaucher/Projects/lp_openerp_6.1/server/openerp/tools/yaml_import.py", line 857, in _process_node
self.process_record(node)
File "/home/yvaucher/Projects/lp_openerp_6.1/server/openerp/tools/yaml_import.py", line 350, in process_record
record_dict = self._create_record(model, fields, view_id, default=default)
File "/home/yvaucher/Projects/lp_openerp_6.1/server/openerp/tools/yaml_import.py", line 428, in _create_record
result = getattr(model, match.group(1))(self.cr, 1, [], *args)
File "/home/yvaucher/Projects/lp_openerp_6.1/addons/account/account_invoice.py", line 1328, in product_id_change
raise osv.except_osv(_('No Partner Defined !'),_("You must first select a partner !") )
except_osv: ('No Partner Defined !', 'You must first select a partner !')
I attach a testing module containing 2 yaml files. One doing an invoice that works (test.yml).
And the other which fails (test2.yml) trying to separate invoice and invoice_line to have an invoice_line reference that could be reused for advanced testing.
Regards,
Yannick
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/903687/+subscriptions
References