Merge lp:~vauxoo/openerp-venezuela-localization/warning_messages into lp:openerp-venezuela-localization

Status: Merged
Merged at revision: 976
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/warning_messages
Merge into: lp:openerp-venezuela-localization
Diff against target: 109 lines (+13/-7)
7 files modified
l10n_ve_split_invoice/model/invoice.py (+1/-0)
l10n_ve_split_invoice/test/spl_test.yml (+4/-1)
l10n_ve_vat_write_off/__openerp__.py (+1/-1)
l10n_ve_withholding_islr/view/installer.xml (+1/-2)
l10n_ve_withholding_iva/model/generate_txt.py (+3/-1)
l10n_ve_withholding_iva/view/generate_txt_view.xml (+2/-1)
ovl/__openerp__.py (+1/-1)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/warning_messages

This proposal supersedes a proposal from 2014-02-19.

Description of the change

[IMP] When we call the read method this brings a serie of key, between these keys comes the id, and this key can't be used to use the create and write functions is why that we need to remove this key of the dictionary

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'l10n_ve_split_invoice/model/invoice.py'
--- l10n_ve_split_invoice/model/invoice.py 2013-11-18 09:24:59 +0000
+++ l10n_ve_split_invoice/model/invoice.py 2014-02-19 04:37:40 +0000
@@ -48,6 +48,7 @@
48 'tax_line': [],48 'tax_line': [],
49 })49 })
50 # take the id part of the tuple returned for many2one fields50 # take the id part of the tuple returned for many2one fields
51 invoice.pop('id', None)
51 for field in ( 'partner_id',52 for field in ( 'partner_id',
52 'account_id', 'currency_id', 'payment_term', 'journal_id', 'period_id','user_id'):53 'account_id', 'currency_id', 'payment_term', 'journal_id', 'period_id','user_id'):
53 invoice[field] = invoice[field] and invoice[field][0]54 invoice[field] = invoice[field] and invoice[field][0]
5455
=== modified file 'l10n_ve_split_invoice/test/spl_test.yml'
--- l10n_ve_split_invoice/test/spl_test.yml 2013-09-18 21:57:53 +0000
+++ l10n_ve_split_invoice/test/spl_test.yml 2014-02-19 04:37:40 +0000
@@ -116,7 +116,10 @@
116-116-
117 1.8 I create invoice by clicking on Create button117 1.8 I create invoice by clicking on Create button
118-118-
119 !workflow {model: account.invoice, action: invoice_open, ref: spl_test01}119 !python {model: account.invoice}: |
120 import netsvc
121 wf_service = netsvc.LocalService("workflow")
122 wf_service.trg_validate(uid, 'account.invoice', ref("spl_test01"), 'invoice_open', cr)
120-123-
121 1.9 I check that Initially customer invoice is in the "Draft" state124 1.9 I check that Initially customer invoice is in the "Draft" state
122-125-
123126
=== modified file 'l10n_ve_vat_write_off/__openerp__.py'
--- l10n_ve_vat_write_off/__openerp__.py 2013-11-18 22:02:09 +0000
+++ l10n_ve_vat_write_off/__openerp__.py 2014-02-19 04:37:40 +0000
@@ -13,6 +13,6 @@
13 "view/l10n_ve_vat_write_off.xml",13 "view/l10n_ve_vat_write_off.xml",
14 ],14 ],
15 "active": False,15 "active": False,
16 "installable": True,16 "installable": False,
17}17}
1818
1919
=== modified file 'l10n_ve_withholding_islr/view/installer.xml'
--- l10n_ve_withholding_islr/view/installer.xml 2013-05-23 04:34:03 +0000
+++ l10n_ve_withholding_islr/view/installer.xml 2014-02-19 04:37:40 +0000
@@ -54,9 +54,8 @@
54 <!-- register configuration wizard -->54 <!-- register configuration wizard -->
55 <record id="config_wizard_step_wh_islr" model="ir.actions.todo">55 <record id="config_wizard_step_wh_islr" model="ir.actions.todo">
56 <field name="action_id" ref="action_config_wh_islr"/>56 <field name="action_id" ref="action_config_wh_islr"/>
57 <field name="restart">always</field>
58 <field name="sequence">45</field>57 <field name="sequence">45</field>
59 <field name="groups_id" eval="[(6,0,[ref('base.group_no_one')])]"/>58 <field name="groups_id" eval="[(6,0,[ref('base.group_no_one')])]"/>
60 </record>59 </record>
61 </data>60 </data>
62</openerp>
63\ No newline at end of file61\ No newline at end of file
62</openerp>
6463
=== modified file 'l10n_ve_withholding_iva/model/generate_txt.py'
--- l10n_ve_withholding_iva/model/generate_txt.py 2013-12-09 21:02:44 +0000
+++ l10n_ve_withholding_iva/model/generate_txt.py 2014-02-19 04:37:40 +0000
@@ -37,6 +37,7 @@
3737
38class txt_iva(osv.osv):38class txt_iva(osv.osv):
39 _name = "txt.iva"39 _name = "txt.iva"
40 _inherit = ['mail.thread']
4041
41 def _get_amount_total(self,cr,uid,ids,name,args,context=None):42 def _get_amount_total(self,cr,uid,ids,name,args,context=None):
42 """ Return total amount withheld of each selected bill43 """ Return total amount withheld of each selected bill
@@ -342,7 +343,8 @@
342 }, context=context343 }, context=context
343 )344 )
344 cr.commit() 345 cr.commit()
345 self.log(cr, uid, ids[0], _("File TXT %s generated.") % name)346 self.message_post(cr, uid, ids[0], _('File Created'),
347 _("File TXT %s generated.") % name)
346 348
347txt_iva()349txt_iva()
348350
349351
=== modified file 'l10n_ve_withholding_iva/view/generate_txt_view.xml'
--- l10n_ve_withholding_iva/view/generate_txt_view.xml 2013-05-23 04:34:03 +0000
+++ l10n_ve_withholding_iva/view/generate_txt_view.xml 2014-02-19 04:37:40 +0000
@@ -68,6 +68,7 @@
68 </page>68 </page>
69 69
70 </notebook>70 </notebook>
71 <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
71 </form>72 </form>
72 </field>73 </field>
73 </record>74 </record>
@@ -131,4 +132,4 @@
131 <menuitem name="Generate TXT" id="menu_action_generate_txt_iva" parent="l10n_ve_fiscal_requirements.menu_venezuela_reporting" action="action_generate_text_iva"/>132 <menuitem name="Generate TXT" id="menu_action_generate_txt_iva" parent="l10n_ve_fiscal_requirements.menu_venezuela_reporting" action="action_generate_text_iva"/>
132133
133 </data>134 </data>
134</openerp>
135\ No newline at end of file135\ No newline at end of file
136</openerp>
136137
=== modified file 'ovl/__openerp__.py'
--- ovl/__openerp__.py 2013-12-16 18:19:20 +0000
+++ ovl/__openerp__.py 2014-02-19 04:37:40 +0000
@@ -42,7 +42,7 @@
42 # want be able set islr 42 # want be able set islr
43 #"l10n_ve_sale_purchase",43 #"l10n_ve_sale_purchase",
44 # Fifth Level of Modules 44 # Fifth Level of Modules
45 "l10n_ve_vat_write_off",45 #"l10n_ve_vat_write_off",
46 ],46 ],
47 "author" : "Vauxoo",47 "author" : "Vauxoo",
48 "description" : """48 "description" : """