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

Status: Superseded
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.

This proposal has been superseded by a proposal from 2014-02-19.

Description of the change

[FIX] ] When we call to signal in workflow we send the record id not a list o ids

To post a comment you must log in.
979. By Jose Antonio Morales Ponce(vauxoo) - - http://www.vauxoo.com

[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

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_split_invoice/model/invoice.py'
2--- l10n_ve_split_invoice/model/invoice.py 2013-11-18 09:24:59 +0000
3+++ l10n_ve_split_invoice/model/invoice.py 2014-02-19 04:36:41 +0000
4@@ -48,6 +48,7 @@
5 'tax_line': [],
6 })
7 # take the id part of the tuple returned for many2one fields
8+ invoice.pop('id', None)
9 for field in ( 'partner_id',
10 'account_id', 'currency_id', 'payment_term', 'journal_id', 'period_id','user_id'):
11 invoice[field] = invoice[field] and invoice[field][0]
12
13=== modified file 'l10n_ve_split_invoice/test/spl_test.yml'
14--- l10n_ve_split_invoice/test/spl_test.yml 2013-09-18 21:57:53 +0000
15+++ l10n_ve_split_invoice/test/spl_test.yml 2014-02-19 04:36:41 +0000
16@@ -116,7 +116,10 @@
17 -
18 1.8 I create invoice by clicking on Create button
19 -
20- !workflow {model: account.invoice, action: invoice_open, ref: spl_test01}
21+ !python {model: account.invoice}: |
22+ import netsvc
23+ wf_service = netsvc.LocalService("workflow")
24+ wf_service.trg_validate(uid, 'account.invoice', ref("spl_test01"), 'invoice_open', cr)
25 -
26 1.9 I check that Initially customer invoice is in the "Draft" state
27 -
28
29=== modified file 'l10n_ve_vat_write_off/__openerp__.py'
30--- l10n_ve_vat_write_off/__openerp__.py 2013-11-18 22:02:09 +0000
31+++ l10n_ve_vat_write_off/__openerp__.py 2014-02-19 04:36:41 +0000
32@@ -13,6 +13,6 @@
33 "view/l10n_ve_vat_write_off.xml",
34 ],
35 "active": False,
36- "installable": True,
37+ "installable": False,
38 }
39
40
41=== modified file 'l10n_ve_withholding_islr/view/installer.xml'
42--- l10n_ve_withholding_islr/view/installer.xml 2013-05-23 04:34:03 +0000
43+++ l10n_ve_withholding_islr/view/installer.xml 2014-02-19 04:36:41 +0000
44@@ -54,9 +54,8 @@
45 <!-- register configuration wizard -->
46 <record id="config_wizard_step_wh_islr" model="ir.actions.todo">
47 <field name="action_id" ref="action_config_wh_islr"/>
48- <field name="restart">always</field>
49 <field name="sequence">45</field>
50 <field name="groups_id" eval="[(6,0,[ref('base.group_no_one')])]"/>
51 </record>
52 </data>
53-</openerp>
54\ No newline at end of file
55+</openerp>
56
57=== modified file 'l10n_ve_withholding_iva/model/generate_txt.py'
58--- l10n_ve_withholding_iva/model/generate_txt.py 2013-12-09 21:02:44 +0000
59+++ l10n_ve_withholding_iva/model/generate_txt.py 2014-02-19 04:36:41 +0000
60@@ -37,6 +37,7 @@
61
62 class txt_iva(osv.osv):
63 _name = "txt.iva"
64+ _inherit = ['mail.thread']
65
66 def _get_amount_total(self,cr,uid,ids,name,args,context=None):
67 """ Return total amount withheld of each selected bill
68@@ -342,7 +343,8 @@
69 }, context=context
70 )
71 cr.commit()
72- self.log(cr, uid, ids[0], _("File TXT %s generated.") % name)
73+ self.message_post(cr, uid, ids[0], _('File Created'),
74+ _("File TXT %s generated.") % name)
75
76 txt_iva()
77
78
79=== modified file 'l10n_ve_withholding_iva/view/generate_txt_view.xml'
80--- l10n_ve_withholding_iva/view/generate_txt_view.xml 2013-05-23 04:34:03 +0000
81+++ l10n_ve_withholding_iva/view/generate_txt_view.xml 2014-02-19 04:36:41 +0000
82@@ -68,6 +68,7 @@
83 </page>
84
85 </notebook>
86+ <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
87 </form>
88 </field>
89 </record>
90@@ -131,4 +132,4 @@
91 <menuitem name="Generate TXT" id="menu_action_generate_txt_iva" parent="l10n_ve_fiscal_requirements.menu_venezuela_reporting" action="action_generate_text_iva"/>
92
93 </data>
94-</openerp>
95\ No newline at end of file
96+</openerp>
97
98=== modified file 'ovl/__openerp__.py'
99--- ovl/__openerp__.py 2013-12-16 18:19:20 +0000
100+++ ovl/__openerp__.py 2014-02-19 04:36:41 +0000
101@@ -42,7 +42,7 @@
102 # want be able set islr
103 #"l10n_ve_sale_purchase",
104 # Fifth Level of Modules
105- "l10n_ve_vat_write_off",
106+ #"l10n_ve_vat_write_off",
107 ],
108 "author" : "Vauxoo",
109 "description" : """