Merge lp:~openbig/bigconsulting/onchange_to_cal_saleprice into lp:bigconsulting
- onchange_to_cal_saleprice
- Merge into addons
Proposed by
gpa(OpenERP)
Status: | Merged |
---|---|
Merged at revision: | 5 |
Proposed branch: | lp:~openbig/bigconsulting/onchange_to_cal_saleprice |
Merge into: | lp:bigconsulting |
Diff against target: |
1162 lines (+883/-133) 19 files modified
product_price_information/__terp__.py (+1/-1) product_price_information/product_price_info.py (+84/-21) product_price_information/product_price_info_view.xml (+57/-2) product_tax_include/.license (+21/-0) product_tax_include/__init__.py (+28/-1) product_tax_include/__terp__.py (+34/-23) product_tax_include/i18n/ca.po (+78/-0) product_tax_include/i18n/es.po (+79/-0) product_tax_include/i18n/fr.po (+71/-0) product_tax_include/i18n/fr_FR.po (+66/-0) product_tax_include/i18n/product_tax_include.pot (+67/-0) product_tax_include/i18n/pt.po (+77/-0) product_tax_include/object/__init__.py (+27/-0) product_tax_include/object/company.py (+40/-0) product_tax_include/object/product.py (+74/-0) product_tax_include/product.py (+0/-54) product_tax_include/product_view.xml (+0/-31) product_tax_include/view/company.xml (+41/-0) product_tax_include/view/product.xml (+38/-0) |
To merge this branch: | bzr merge lp:~openbig/bigconsulting/onchange_to_cal_saleprice |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
openbig | Pending | ||
Review via email: mp+25664@code.launchpad.net |
Commit message
Description of the change
Added on change to calculate value ofsale price W/o taxes
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
1 | === modified file 'product_price_information/__terp__.py' | |||
2 | --- product_price_information/__terp__.py 2010-05-17 14:50:10 +0000 | |||
3 | +++ product_price_information/__terp__.py 2010-05-20 07:24:29 +0000 | |||
4 | @@ -29,7 +29,7 @@ | |||
5 | 29 | and product view called from sale order line. Shop Price will display product price | 29 | and product view called from sale order line. Shop Price will display product price |
6 | 30 | based on pricelist defined in shop selected in sale order. | 30 | based on pricelist defined in shop selected in sale order. |
7 | 31 | """, | 31 | """, |
9 | 32 | "depends": ['sale'], | 32 | "depends": ['sale','product_tax_include','sale_tax_include'], |
10 | 33 | "demo_xml": [], | 33 | "demo_xml": [], |
11 | 34 | "update_xml": ['product_price_info_view.xml' ], | 34 | "update_xml": ['product_price_info_view.xml' ], |
12 | 35 | "license": "GPL-3", | 35 | "license": "GPL-3", |
13 | 36 | 36 | ||
14 | === modified file 'product_price_information/product_price_info.py' | |||
15 | --- product_price_information/product_price_info.py 2010-05-17 14:50:10 +0000 | |||
16 | +++ product_price_information/product_price_info.py 2010-05-20 07:24:29 +0000 | |||
17 | @@ -56,25 +56,88 @@ | |||
18 | 56 | class sale_order_line(osv.osv): | 56 | class sale_order_line(osv.osv): |
19 | 57 | _inherit = "sale.order.line" | 57 | _inherit = "sale.order.line" |
20 | 58 | 58 | ||
36 | 59 | def _compute_shop_price(self, cr, uid, ids, name, arg, context=None): | 59 | _columns = { |
37 | 60 | if not context: | 60 | 'sale_price_unit_tax': fields.float('Sale price W/O taxes'), |
38 | 61 | context = {} | 61 | } |
39 | 62 | res = {} | 62 | |
40 | 63 | pricelist_obj = self.pool.get('product.pricelist') | 63 | def product_id_change(self, cr, uid, ids, pricelist, product, qty=0, |
41 | 64 | for so_line in self.browse(cr, uid, ids): | 64 | uom=False, qty_uos=0, uos=False, name='', partner_id=False, |
42 | 65 | sale_order_id = so_line.order_id | 65 | lang=False, update_tax=True, date_order=False, packaging=False, fiscal_position=False, flag=False): |
43 | 66 | shop_id = sale_order_id.shop_id | 66 | |
44 | 67 | if shop_id.pricelist_id: | 67 | tax_obj = self.pool.get('account.tax') |
45 | 68 | pricelist_id = shop_id.pricelist_id.id | 68 | |
46 | 69 | price_unit = pricelist_obj.price_get(cr, uid, [pricelist_id], so_line.product_id.id, so_line.product_uom_qty or 1.0, sale_order_id.partner_id, {'uom': so_line.product_uom.id})[pricelist_id] | 69 | result = super(sale_order_line, self).product_id_change(cr, uid, ids, pricelist, product, qty, |
47 | 70 | else: | 70 | uom, qty_uos, uos, name, partner_id, lang, update_tax, date_order, packaging, fiscal_position, flag) |
48 | 71 | pricelist_id = sale_order_id.pricelist_id.id | 71 | if product: |
49 | 72 | price_unit = pricelist_obj.price_get(cr, uid, [pricelist_id], so_line.product_id.id, so_line.product_uom_qty or 1.0, sale_order_id.partner_id, {'uom': so_line.product_uom.id})[pricelist_id] | 72 | context = {'lang': lang, 'partner_id': partner_id, 'qty': qty} |
50 | 73 | res[so_line.id] = price_unit | 73 | product_obj = self.pool.get('product.product').browse(cr, uid, product, context=context) |
51 | 74 | result['value']['sale_price_unit_tax'] = product_obj.product_tmpl_id.price_unit_tax | ||
52 | 75 | |||
53 | 76 | return result | ||
54 | 77 | |||
55 | 78 | sale_order_line() | ||
56 | 79 | |||
57 | 80 | class sale_order(osv.osv): | ||
58 | 81 | _name = "sale.order" | ||
59 | 82 | _inherit = "sale.order" | ||
60 | 83 | |||
61 | 84 | def onchange_shop_id(self, cr, uid, ids, shop_id): | ||
62 | 85 | res = super(sale_order, self).onchange_shop_id(cr, uid, id, shop_id) | ||
63 | 86 | if 'value' in res and shop_id: | ||
64 | 87 | res['value']['price_type'] = self.pool.get('sale.shop').browse(cr, uid , shop_id).price_type | ||
65 | 74 | return res | 88 | return res |
66 | 75 | |||
67 | 76 | _columns = { | ||
68 | 77 | 'shop_price': fields.function(_compute_shop_price, method=True, type='float', string='Shop Price', digits=(16, int(config['price_accuracy']))), | ||
69 | 78 | } | ||
70 | 79 | |||
71 | 80 | sale_order_line() | ||
72 | 81 | \ No newline at end of file | 89 | \ No newline at end of file |
73 | 90 | |||
74 | 91 | sale_order() | ||
75 | 92 | |||
76 | 93 | |||
77 | 94 | class sale_shop(osv.osv): | ||
78 | 95 | _name = 'sale.shop' | ||
79 | 96 | _inherit = 'sale.shop' | ||
80 | 97 | _columns = { | ||
81 | 98 | 'price_type': fields.selection([ | ||
82 | 99 | ('tax_included','Tax included'), | ||
83 | 100 | ('tax_excluded','Tax excluded') | ||
84 | 101 | ], 'Price method', required=True), | ||
85 | 102 | } | ||
86 | 103 | _defaults = { | ||
87 | 104 | 'price_type': lambda *a: 'tax_included', | ||
88 | 105 | } | ||
89 | 106 | |||
90 | 107 | sale_shop() | ||
91 | 108 | |||
92 | 109 | class sale_shop_price_method_policy(osv.osv_memory): | ||
93 | 110 | _name = 'sale.shop.price.method' | ||
94 | 111 | _columns = { | ||
95 | 112 | 'name': fields.char('Name', size=64), | ||
96 | 113 | 'price_type': fields.selection([ | ||
97 | 114 | ('tax_included','Tax included'), | ||
98 | 115 | ('tax_excluded','Tax excluded') | ||
99 | 116 | ], 'Price method', required=True), | ||
100 | 117 | } | ||
101 | 118 | _defaults = { | ||
102 | 119 | 'price_type': lambda *a: 'tax_included', | ||
103 | 120 | } | ||
104 | 121 | |||
105 | 122 | def set_default(self, cr, uid, ids, context=None): | ||
106 | 123 | for o in self.browse(cr, uid, ids, context=context): | ||
107 | 124 | ir_values_obj = self.pool.get('ir.values') | ||
108 | 125 | print "o.price_type",o.price_type | ||
109 | 126 | ir_values_obj.set(cr, uid, 'default', False, 'price_type', ['sale.shop'], o.price_type) | ||
110 | 127 | return { | ||
111 | 128 | 'view_type': 'form', | ||
112 | 129 | "view_mode": 'form', | ||
113 | 130 | 'res_model': 'ir.actions.configuration.wizard', | ||
114 | 131 | 'type': 'ir.actions.act_window', | ||
115 | 132 | 'target': 'new', | ||
116 | 133 | } | ||
117 | 134 | |||
118 | 135 | def action_cancel(self,cr,uid,ids,conect=None): | ||
119 | 136 | return { | ||
120 | 137 | 'view_type': 'form', | ||
121 | 138 | "view_mode": 'form', | ||
122 | 139 | 'res_model': 'ir.actions.configuration.wizard', | ||
123 | 140 | 'type': 'ir.actions.act_window', | ||
124 | 141 | 'target':'new', | ||
125 | 142 | } | ||
126 | 143 | |||
127 | 144 | sale_shop_price_method_policy() | ||
128 | 82 | \ No newline at end of file | 145 | \ No newline at end of file |
129 | 83 | 146 | ||
130 | === modified file 'product_price_information/product_price_info_view.xml' | |||
131 | --- product_price_information/product_price_info_view.xml 2010-05-17 14:50:10 +0000 | |||
132 | +++ product_price_information/product_price_info_view.xml 2010-05-20 07:24:29 +0000 | |||
133 | @@ -43,7 +43,8 @@ | |||
134 | 43 | </xpath> | 43 | </xpath> |
135 | 44 | </field> | 44 | </field> |
136 | 45 | </record> | 45 | </record> |
138 | 46 | 46 | ||
139 | 47 | |||
140 | 47 | <!-- Adding shop price field on sale order line form below Unit Price --> | 48 | <!-- Adding shop price field on sale order line form below Unit Price --> |
141 | 48 | 49 | ||
142 | 49 | <record model="ir.ui.view" id="view_sale_order_line_tree_direct_delivery"> | 50 | <record model="ir.ui.view" id="view_sale_order_line_tree_direct_delivery"> |
143 | @@ -53,10 +54,64 @@ | |||
144 | 53 | <field name="type">form</field> | 54 | <field name="type">form</field> |
145 | 54 | <field name="arch" type="xml"> | 55 | <field name="arch" type="xml"> |
146 | 55 | <xpath expr="//field[@name='discount']" position="after"> | 56 | <xpath expr="//field[@name='discount']" position="after"> |
148 | 56 | <field name="shop_price"/> | 57 | <field name="sale_price_unit_tax"/> |
149 | 57 | </xpath> | 58 | </xpath> |
150 | 58 | </field> | 59 | </field> |
151 | 59 | </record> | 60 | </record> |
152 | 61 | |||
153 | 62 | <record model="ir.ui.view" id="product_tax_include_tree"> | ||
154 | 63 | <field name="name">product.tax.include.tree</field> | ||
155 | 64 | <field name="model">product.product</field> | ||
156 | 65 | <field name="type">form</field> | ||
157 | 66 | <field name="inherit_id" ref="product.product_product_tree_view"/> | ||
158 | 67 | <field name="arch" type="xml"> | ||
159 | 68 | <field name="lst_price" position="before"> | ||
160 | 69 | <field name="price_unit_tax"/> | ||
161 | 70 | </field> | ||
162 | 71 | </field> | ||
163 | 72 | </record> | ||
164 | 73 | |||
165 | 74 | <record id="view_partner_property_form" model="ir.ui.view"> | ||
166 | 75 | <field name="name">sale.shop.property.form.inherit</field> | ||
167 | 76 | <field name="model">sale.shop</field> | ||
168 | 77 | <field name="type">form</field> | ||
169 | 78 | <field name="inherit_id" ref="sale.view_shop_form"/> | ||
170 | 79 | <field name="arch" type="xml"> | ||
171 | 80 | <field name="project_id" position="after"> | ||
172 | 81 | <field name="price_type"/> | ||
173 | 82 | </field> | ||
174 | 83 | </field> | ||
175 | 84 | </record> | ||
176 | 85 | |||
177 | 86 | <record id="view_config_price_policy" model="ir.ui.view"> | ||
178 | 87 | <field name="name">Price Method for Sale Order Shop</field> | ||
179 | 88 | <field name="model">sale.shop.price.method</field> | ||
180 | 89 | <field name="type">form</field> | ||
181 | 90 | <field name="arch" type="xml"> | ||
182 | 91 | <form string="Shop Configuration"> | ||
183 | 92 | <field name="price_type"/> | ||
184 | 93 | <newline/> | ||
185 | 94 | <group col="4" colspan="4"> | ||
186 | 95 | <button icon="gtk-cancel" name="action_cancel" type="object" special="cancel" string="Cancel"/> | ||
187 | 96 | <button icon="gtk-ok" name="set_default" string="Set Default" type="object"/> | ||
188 | 97 | </group> | ||
189 | 98 | </form> | ||
190 | 99 | </field> | ||
191 | 100 | </record> | ||
192 | 101 | |||
193 | 102 | <record id="action_config_price_policy" model="ir.actions.act_window"> | ||
194 | 103 | <field name="name">Price Method for Sale Order Shop</field> | ||
195 | 104 | <field name="type">ir.actions.act_window</field> | ||
196 | 105 | <field name="res_model">sale.shop.price.method</field> | ||
197 | 106 | <field name="view_type">form</field> | ||
198 | 107 | <field name="view_mode">form</field> | ||
199 | 108 | <field name="target">new</field> | ||
200 | 109 | </record> | ||
201 | 110 | |||
202 | 111 | <record id="config_wizard_step_shop_price_policy" model="ir.actions.todo"> | ||
203 | 112 | <field name="name">Shop Price</field> | ||
204 | 113 | <field name="action_id" ref="action_config_price_policy"/> | ||
205 | 114 | </record> | ||
206 | 60 | 115 | ||
207 | 61 | </data> | 116 | </data> |
208 | 62 | </openerp> | 117 | </openerp> |
209 | 63 | 118 | ||
210 | === added file 'product_tax_include/.license' | |||
211 | --- product_tax_include/.license 1970-01-01 00:00:00 +0000 | |||
212 | +++ product_tax_include/.license 2010-05-20 07:24:29 +0000 | |||
213 | @@ -0,0 +1,21 @@ | |||
214 | 1 | ############################################################################## | ||
215 | 2 | # | ||
216 | 3 | # product_tax_include module for OpenERP, Add new field for tax include in product | ||
217 | 4 | # Copyright (C) 2009 SYLEAM Info Services (<http://www.Syleam.fr/>) Sebastien LANGE | ||
218 | 5 | # | ||
219 | 6 | # This file is a part of product_tax_include | ||
220 | 7 | # | ||
221 | 8 | # product_tax_include is free software: you can redistribute it and/or modify | ||
222 | 9 | # it under the terms of the GNU General Public License as published by | ||
223 | 10 | # the Free Software Foundation, either version 3 of the License, or | ||
224 | 11 | # (at your option) any later version. | ||
225 | 12 | # | ||
226 | 13 | # product_tax_include is distributed in the hope that it will be useful, | ||
227 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
228 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
229 | 16 | # GNU General Public License for more details. | ||
230 | 17 | # | ||
231 | 18 | # You should have received a copy of the GNU General Public License | ||
232 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
233 | 20 | # | ||
234 | 21 | ############################################################################## | ||
235 | 0 | 22 | ||
236 | === modified file 'product_tax_include/__init__.py' (properties changed: +x to -x) | |||
237 | --- product_tax_include/__init__.py 2010-05-19 08:34:42 +0000 | |||
238 | +++ product_tax_include/__init__.py 2010-05-20 07:24:29 +0000 | |||
239 | @@ -1,1 +1,28 @@ | |||
240 | 1 | import product | ||
241 | 2 | \ No newline at end of file | 1 | \ No newline at end of file |
242 | 2 | # -*- coding: utf-8 -*- | ||
243 | 3 | ############################################################################## | ||
244 | 4 | # | ||
245 | 5 | # product_tax_include module for OpenERP, Add new field for tax include in product | ||
246 | 6 | # Copyright (C) 2009 SYLEAM Info Services (<http://www.Syleam.fr/>) Sebastien LANGE | ||
247 | 7 | # | ||
248 | 8 | # This file is a part of product_tax_include | ||
249 | 9 | # | ||
250 | 10 | # product_tax_include is free software: you can redistribute it and/or modify | ||
251 | 11 | # it under the terms of the GNU General Public License as published by | ||
252 | 12 | # the Free Software Foundation, either version 3 of the License, or | ||
253 | 13 | # (at your option) any later version. | ||
254 | 14 | # | ||
255 | 15 | # product_tax_include is distributed in the hope that it will be useful, | ||
256 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
257 | 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
258 | 18 | # GNU General Public License for more details. | ||
259 | 19 | # | ||
260 | 20 | # You should have received a copy of the GNU General Public License | ||
261 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
262 | 22 | # | ||
263 | 23 | ############################################################################## | ||
264 | 24 | |||
265 | 25 | import object | ||
266 | 26 | import report | ||
267 | 27 | import wizard | ||
268 | 28 | |||
269 | 29 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
270 | 3 | \ No newline at end of file | 30 | \ No newline at end of file |
271 | 4 | 31 | ||
272 | === modified file 'product_tax_include/__terp__.py' (properties changed: +x to -x) | |||
273 | --- product_tax_include/__terp__.py 2010-05-19 08:34:42 +0000 | |||
274 | +++ product_tax_include/__terp__.py 2010-05-20 07:24:29 +0000 | |||
275 | @@ -1,16 +1,17 @@ | |||
277 | 1 | # -*- encoding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- |
278 | 2 | ############################################################################## | 2 | ############################################################################## |
279 | 3 | # | 3 | # |
285 | 4 | # OpenERP, Open Source Management Solution | 4 | # product_tax_include module for OpenERP, Add new field for tax include in product |
286 | 5 | # Copyright (C) 2009 Smile.fr. All Rights Reserved | 5 | # Copyright (C) 2009 SYLEAM Info Services (<http://www.Syleam.fr/>) Sebastien LANGE |
287 | 6 | # author: Raphaƫl Valyi, Amadou Diallo | 6 | # |
288 | 7 | # | 7 | # This file is a part of product_tax_include |
289 | 8 | # This program is free software: you can redistribute it and/or modify | 8 | # |
290 | 9 | # product_tax_include is free software: you can redistribute it and/or modify | ||
291 | 9 | # it under the terms of the GNU General Public License as published by | 10 | # it under the terms of the GNU General Public License as published by |
292 | 10 | # the Free Software Foundation, either version 3 of the License, or | 11 | # the Free Software Foundation, either version 3 of the License, or |
293 | 11 | # (at your option) any later version. | 12 | # (at your option) any later version. |
294 | 12 | # | 13 | # |
296 | 13 | # This program is distributed in the hope that it will be useful, | 14 | # product_tax_include is distributed in the hope that it will be useful, |
297 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
298 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
299 | 16 | # GNU General Public License for more details. | 17 | # GNU General Public License for more details. |
300 | @@ -19,22 +20,32 @@ | |||
301 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | 20 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
302 | 20 | # | 21 | # |
303 | 21 | ############################################################################## | 22 | ############################################################################## |
304 | 23 | |||
305 | 22 | { | 24 | { |
320 | 23 | "name" : "Product Tax Include", | 25 | 'name': 'Product Tax Include', |
321 | 24 | "description":"""Product Tax Include | 26 | 'version': '0.0.1', |
322 | 25 | Allows to compute the base sale untaxed amount given a taxed amount entry (change the list_price on on_change) | 27 | 'category': 'Generic Modules/Inventory Control', |
323 | 26 | and reciprocally. | 28 | 'description': """Add new field for tax include in product |
324 | 27 | """, | 29 | |
325 | 28 | "version" : "0.1", | 30 | OpenERP version : 5.0 |
326 | 29 | "author" : "Smile.fr", | 31 | Creation : 2009-12-05 |
327 | 30 | "category" : "Custom", | 32 | Last update : 2009-12-05 |
328 | 31 | "depends" : ["product", "account"], | 33 | """, |
329 | 32 | "init_xml" : [], | 34 | 'author': 'SYLEAM Info Services', |
330 | 33 | "demo_xml" : [], | 35 | 'depends': [ |
331 | 34 | "update_xml" : ["product_view.xml"], | 36 | "base", |
332 | 35 | "active": False, | 37 | "product", |
333 | 36 | "installable": True | 38 | "account_tax_include", |
334 | 39 | ], | ||
335 | 40 | 'init_xml': [], | ||
336 | 41 | 'update_xml': [ | ||
337 | 42 | "view/company.xml", | ||
338 | 43 | "view/product.xml", | ||
339 | 44 | ], | ||
340 | 45 | 'demo_xml': [], | ||
341 | 46 | 'installable': True, | ||
342 | 47 | 'active': False, | ||
343 | 48 | 'license': 'GPL-3', | ||
344 | 37 | } | 49 | } |
345 | 50 | |||
346 | 38 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | 51 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
347 | 39 | |||
348 | 40 | #,"product_variant_configurator_wizard.xml" | ||
349 | 41 | \ No newline at end of file | 52 | \ No newline at end of file |
350 | 42 | 53 | ||
351 | === added directory 'product_tax_include/i18n' | |||
352 | === added file 'product_tax_include/i18n/ca.po' | |||
353 | --- product_tax_include/i18n/ca.po 1970-01-01 00:00:00 +0000 | |||
354 | +++ product_tax_include/i18n/ca.po 2010-05-20 07:24:29 +0000 | |||
355 | @@ -0,0 +1,78 @@ | |||
356 | 1 | # Catalan translation for openobject-addons | ||
357 | 2 | # Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 | ||
358 | 3 | # This file is distributed under the same license as the openobject-addons package. | ||
359 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, 2009. | ||
360 | 5 | # | ||
361 | 6 | msgid "" | ||
362 | 7 | msgstr "" | ||
363 | 8 | "Project-Id-Version: openobject-addons\n" | ||
364 | 9 | "Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" | ||
365 | 10 | "POT-Creation-Date: 2009-12-05 14:38+0000\n" | ||
366 | 11 | "PO-Revision-Date: 2009-12-07 06:02+0000\n" | ||
367 | 12 | "Last-Translator: Jordi Esteve - http://www.zikzakmedia.com " | ||
368 | 13 | "<jesteve@zikzakmedia.com>\n" | ||
369 | 14 | "Language-Team: Catalan <ca@li.org>\n" | ||
370 | 15 | "MIME-Version: 1.0\n" | ||
371 | 16 | "Content-Type: text/plain; charset=UTF-8\n" | ||
372 | 17 | "Content-Transfer-Encoding: 8bit\n" | ||
373 | 18 | "X-Launchpad-Export-Date: 2010-04-09 04:01+0000\n" | ||
374 | 19 | "X-Generator: Launchpad (build Unknown)\n" | ||
375 | 20 | |||
376 | 21 | #. module: product_tax_include | ||
377 | 22 | #: model:ir.module.module,shortdesc:product_tax_include.module_meta_information | ||
378 | 23 | msgid "Product Tax Include" | ||
379 | 24 | msgstr "Productes amb impostos inclosos" | ||
380 | 25 | |||
381 | 26 | #. module: product_tax_include | ||
382 | 27 | #: constraint:ir.ui.view:0 | ||
383 | 28 | msgid "Invalid XML for View Architecture!" | ||
384 | 29 | msgstr "ļ»æXML invĆ lid per a la definiciĆ³ de la vista!" | ||
385 | 30 | |||
386 | 31 | #. module: product_tax_include | ||
387 | 32 | #: help:product.template,price_unit_tax:0 | ||
388 | 33 | msgid "" | ||
389 | 34 | "Price calculated with taxes included or excluded, depend of the " | ||
390 | 35 | "configuration in company configuration" | ||
391 | 36 | msgstr "" | ||
392 | 37 | "Preu calculat amb impostos inclosos o exclosos, depenent de la configuraciĆ³ " | ||
393 | 38 | "de la companyia." | ||
394 | 39 | |||
395 | 40 | #. module: product_tax_include | ||
396 | 41 | #: view:res.company:0 | ||
397 | 42 | msgid "Product" | ||
398 | 43 | msgstr "Producte" | ||
399 | 44 | |||
400 | 45 | #. module: product_tax_include | ||
401 | 46 | #: field:product.template,price_unit_tax:0 | ||
402 | 47 | msgid "Sale price with taxes included or excluded" | ||
403 | 48 | msgstr "Preu de venda amb impostos inclosos o exclosos" | ||
404 | 49 | |||
405 | 50 | #. module: product_tax_include | ||
406 | 51 | #: field:res.company,product_prices_tax_include:0 | ||
407 | 52 | msgid "Prices tax included" | ||
408 | 53 | msgstr "Preus impostos inclosos" | ||
409 | 54 | |||
410 | 55 | #. module: product_tax_include | ||
411 | 56 | #: help:res.company,product_prices_tax_include:0 | ||
412 | 57 | msgid "Product prices have tax included." | ||
413 | 58 | msgstr "Els preus del producte tenen els impostos inclosos." | ||
414 | 59 | |||
415 | 60 | #. module: product_tax_include | ||
416 | 61 | #: view:res.company:0 | ||
417 | 62 | msgid "Configuration" | ||
418 | 63 | msgstr "ConfiguraciĆ³" | ||
419 | 64 | |||
420 | 65 | #. module: product_tax_include | ||
421 | 66 | #: model:ir.module.module,description:product_tax_include.module_meta_information | ||
422 | 67 | msgid "" | ||
423 | 68 | "Add new field for tax include in product\n" | ||
424 | 69 | "\n" | ||
425 | 70 | " OpenERP version : 5.0\n" | ||
426 | 71 | " Creation : 2009-12-05\n" | ||
427 | 72 | " Last update : 2009-12-05\n" | ||
428 | 73 | msgstr "" | ||
429 | 74 | "Afegeix un nou camp per als impostos inclosos en els preus del producte\n" | ||
430 | 75 | "\n" | ||
431 | 76 | " OpenERP versiĆ³ : 5.0\n" | ||
432 | 77 | " CreaciĆ³ : 05-12-2009\n" | ||
433 | 78 | " Ćltima actualitzaciĆ³ : 05-12-2009\n" | ||
434 | 0 | 79 | ||
435 | === added file 'product_tax_include/i18n/es.po' | |||
436 | --- product_tax_include/i18n/es.po 1970-01-01 00:00:00 +0000 | |||
437 | +++ product_tax_include/i18n/es.po 2010-05-20 07:24:29 +0000 | |||
438 | @@ -0,0 +1,79 @@ | |||
439 | 1 | # Spanish translation for openobject-addons | ||
440 | 2 | # Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 | ||
441 | 3 | # This file is distributed under the same license as the openobject-addons package. | ||
442 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, 2009. | ||
443 | 5 | # | ||
444 | 6 | msgid "" | ||
445 | 7 | msgstr "" | ||
446 | 8 | "Project-Id-Version: openobject-addons\n" | ||
447 | 9 | "Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" | ||
448 | 10 | "POT-Creation-Date: 2009-12-05 14:38+0000\n" | ||
449 | 11 | "PO-Revision-Date: 2009-12-06 06:03+0000\n" | ||
450 | 12 | "Last-Translator: Jordi Esteve - http://www.zikzakmedia.com " | ||
451 | 13 | "<jesteve@zikzakmedia.com>\n" | ||
452 | 14 | "Language-Team: Spanish <es@li.org>\n" | ||
453 | 15 | "MIME-Version: 1.0\n" | ||
454 | 16 | "Content-Type: text/plain; charset=UTF-8\n" | ||
455 | 17 | "Content-Transfer-Encoding: 8bit\n" | ||
456 | 18 | "X-Launchpad-Export-Date: 2010-04-09 04:01+0000\n" | ||
457 | 19 | "X-Generator: Launchpad (build Unknown)\n" | ||
458 | 20 | |||
459 | 21 | #. module: product_tax_include | ||
460 | 22 | #: model:ir.module.module,shortdesc:product_tax_include.module_meta_information | ||
461 | 23 | msgid "Product Tax Include" | ||
462 | 24 | msgstr "Productos con impuestos incluidos" | ||
463 | 25 | |||
464 | 26 | #. module: product_tax_include | ||
465 | 27 | #: constraint:ir.ui.view:0 | ||
466 | 28 | msgid "Invalid XML for View Architecture!" | ||
467 | 29 | msgstr "Ā”XML invĆ”lido para la definiciĆ³n de la vista!" | ||
468 | 30 | |||
469 | 31 | #. module: product_tax_include | ||
470 | 32 | #: help:product.template,price_unit_tax:0 | ||
471 | 33 | msgid "" | ||
472 | 34 | "Price calculated with taxes included or excluded, depend of the " | ||
473 | 35 | "configuration in company configuration" | ||
474 | 36 | msgstr "" | ||
475 | 37 | "Precio calculado con impuestos incluidos o excluidos, dependiendo de la " | ||
476 | 38 | "configuraciĆ³n de la compaƱĆa." | ||
477 | 39 | |||
478 | 40 | #. module: product_tax_include | ||
479 | 41 | #: view:res.company:0 | ||
480 | 42 | msgid "Product" | ||
481 | 43 | msgstr "Producto" | ||
482 | 44 | |||
483 | 45 | #. module: product_tax_include | ||
484 | 46 | #: field:product.template,price_unit_tax:0 | ||
485 | 47 | msgid "Sale price with taxes included or excluded" | ||
486 | 48 | msgstr "Precio de venta con impuestos incluidos o excluidos" | ||
487 | 49 | |||
488 | 50 | #. module: product_tax_include | ||
489 | 51 | #: field:res.company,product_prices_tax_include:0 | ||
490 | 52 | msgid "Prices tax included" | ||
491 | 53 | msgstr "Precios impuestos incluidos" | ||
492 | 54 | |||
493 | 55 | #. module: product_tax_include | ||
494 | 56 | #: help:res.company,product_prices_tax_include:0 | ||
495 | 57 | msgid "Product prices have tax included." | ||
496 | 58 | msgstr "Los precios del producto tienen los impuestos incluidos." | ||
497 | 59 | |||
498 | 60 | #. module: product_tax_include | ||
499 | 61 | #: view:res.company:0 | ||
500 | 62 | msgid "Configuration" | ||
501 | 63 | msgstr "ConfiguraciĆ³n" | ||
502 | 64 | |||
503 | 65 | #. module: product_tax_include | ||
504 | 66 | #: model:ir.module.module,description:product_tax_include.module_meta_information | ||
505 | 67 | msgid "" | ||
506 | 68 | "Add new field for tax include in product\n" | ||
507 | 69 | "\n" | ||
508 | 70 | " OpenERP version : 5.0\n" | ||
509 | 71 | " Creation : 2009-12-05\n" | ||
510 | 72 | " Last update : 2009-12-05\n" | ||
511 | 73 | msgstr "" | ||
512 | 74 | "AƱade un nuevo campo para los impuestos incluidos en los precios del " | ||
513 | 75 | "producto\n" | ||
514 | 76 | "\n" | ||
515 | 77 | " OpenERP versiĆ³n : 5.0\n" | ||
516 | 78 | " CreaciĆ³n : 05-12-2009\n" | ||
517 | 79 | " Ćltima actualizaciĆ³n : 05-12-2009\n" | ||
518 | 0 | 80 | ||
519 | === added file 'product_tax_include/i18n/fr.po' | |||
520 | --- product_tax_include/i18n/fr.po 1970-01-01 00:00:00 +0000 | |||
521 | +++ product_tax_include/i18n/fr.po 2010-05-20 07:24:29 +0000 | |||
522 | @@ -0,0 +1,71 @@ | |||
523 | 1 | # Translation of OpenERP Server. | ||
524 | 2 | # This file contains the translation of the following modules: | ||
525 | 3 | # * product_tax_include | ||
526 | 4 | # | ||
527 | 5 | msgid "" | ||
528 | 6 | msgstr "" | ||
529 | 7 | "Project-Id-Version: OpenERP Server 5.0.6\n" | ||
530 | 8 | "Report-Msgid-Bugs-To: support@openerp.com\n" | ||
531 | 9 | "POT-Creation-Date: 2009-12-05 14:38+0000\n" | ||
532 | 10 | "PO-Revision-Date: 2009-12-05 16:27+0000\n" | ||
533 | 11 | "Last-Translator: Sebastien LANGE - http://www.Syleam.fr <Unknown>\n" | ||
534 | 12 | "Language-Team: \n" | ||
535 | 13 | "MIME-Version: 1.0\n" | ||
536 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
537 | 15 | "Content-Transfer-Encoding: 8bit\n" | ||
538 | 16 | "X-Launchpad-Export-Date: 2010-04-09 04:01+0000\n" | ||
539 | 17 | "X-Generator: Launchpad (build Unknown)\n" | ||
540 | 18 | |||
541 | 19 | #. module: product_tax_include | ||
542 | 20 | #: model:ir.module.module,shortdesc:product_tax_include.module_meta_information | ||
543 | 21 | msgid "Product Tax Include" | ||
544 | 22 | msgstr "" | ||
545 | 23 | |||
546 | 24 | #. module: product_tax_include | ||
547 | 25 | #: constraint:ir.ui.view:0 | ||
548 | 26 | msgid "Invalid XML for View Architecture!" | ||
549 | 27 | msgstr "Formulaire XML invalide pour ce type de vue" | ||
550 | 28 | |||
551 | 29 | #. module: product_tax_include | ||
552 | 30 | #: help:product.template,price_unit_tax:0 | ||
553 | 31 | msgid "" | ||
554 | 32 | "Price calculated with taxes included or excluded, depend of the " | ||
555 | 33 | "configuration in company configuration" | ||
556 | 34 | msgstr "" | ||
557 | 35 | "Prix calculƩ avec taxes incluses ou excluses, dƩpend du paramƩtrage dans la " | ||
558 | 36 | "sociƩtƩ" | ||
559 | 37 | |||
560 | 38 | #. module: product_tax_include | ||
561 | 39 | #: view:res.company:0 | ||
562 | 40 | msgid "Product" | ||
563 | 41 | msgstr "Produit" | ||
564 | 42 | |||
565 | 43 | #. module: product_tax_include | ||
566 | 44 | #: field:product.template,price_unit_tax:0 | ||
567 | 45 | msgid "Sale price with taxes included or excluded" | ||
568 | 46 | msgstr "Prix de vente avec taxes incluses ou excluses" | ||
569 | 47 | |||
570 | 48 | #. module: product_tax_include | ||
571 | 49 | #: field:res.company,product_prices_tax_include:0 | ||
572 | 50 | msgid "Prices tax included" | ||
573 | 51 | msgstr "Taxes incluses dans le prix" | ||
574 | 52 | |||
575 | 53 | #. module: product_tax_include | ||
576 | 54 | #: help:res.company,product_prices_tax_include:0 | ||
577 | 55 | msgid "Product prices have tax included." | ||
578 | 56 | msgstr "Taxes incluses dans le prix du produit" | ||
579 | 57 | |||
580 | 58 | #. module: product_tax_include | ||
581 | 59 | #: view:res.company:0 | ||
582 | 60 | msgid "Configuration" | ||
583 | 61 | msgstr "Configuration" | ||
584 | 62 | |||
585 | 63 | #. module: product_tax_include | ||
586 | 64 | #: model:ir.module.module,description:product_tax_include.module_meta_information | ||
587 | 65 | msgid "" | ||
588 | 66 | "Add new field for tax include in product\n" | ||
589 | 67 | "\n" | ||
590 | 68 | " OpenERP version : 5.0\n" | ||
591 | 69 | " Creation : 2009-12-05\n" | ||
592 | 70 | " Last update : 2009-12-05\n" | ||
593 | 71 | msgstr "" | ||
594 | 0 | 72 | ||
595 | === added file 'product_tax_include/i18n/fr_FR.po' | |||
596 | --- product_tax_include/i18n/fr_FR.po 1970-01-01 00:00:00 +0000 | |||
597 | +++ product_tax_include/i18n/fr_FR.po 2010-05-20 07:24:29 +0000 | |||
598 | @@ -0,0 +1,66 @@ | |||
599 | 1 | # Translation of OpenERP Server. | ||
600 | 2 | # This file contains the translation of the following modules: | ||
601 | 3 | # * product_tax_include | ||
602 | 4 | # | ||
603 | 5 | msgid "" | ||
604 | 6 | msgstr "" | ||
605 | 7 | "Project-Id-Version: OpenERP Server 5.0.6\n" | ||
606 | 8 | "Report-Msgid-Bugs-To: support@openerp.com\n" | ||
607 | 9 | "POT-Creation-Date: 2009-12-05 14:39:03+0000\n" | ||
608 | 10 | "PO-Revision-Date: 2009-12-05 14:39:03+0000\n" | ||
609 | 11 | "Last-Translator: <>\n" | ||
610 | 12 | "Language-Team: \n" | ||
611 | 13 | "MIME-Version: 1.0\n" | ||
612 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
613 | 15 | "Content-Transfer-Encoding: \n" | ||
614 | 16 | "Plural-Forms: \n" | ||
615 | 17 | |||
616 | 18 | #. module: product_tax_include | ||
617 | 19 | #: model:ir.module.module,shortdesc:product_tax_include.module_meta_information | ||
618 | 20 | msgid "Product Tax Include" | ||
619 | 21 | msgstr "" | ||
620 | 22 | |||
621 | 23 | #. module: product_tax_include | ||
622 | 24 | #: constraint:ir.ui.view:0 | ||
623 | 25 | msgid "Invalid XML for View Architecture!" | ||
624 | 26 | msgstr "Formulaire XML invalide pour ce type de vue" | ||
625 | 27 | |||
626 | 28 | #. module: product_tax_include | ||
627 | 29 | #: help:product.template,price_unit_tax:0 | ||
628 | 30 | msgid "Price calculated with taxes included or excluded, depend of the configuration in company configuration" | ||
629 | 31 | msgstr "Prix calculƩ avec taxes incluses ou excluses, dƩpend du paramƩtrage dans la sociƩtƩ" | ||
630 | 32 | |||
631 | 33 | #. module: product_tax_include | ||
632 | 34 | #: view:res.company:0 | ||
633 | 35 | msgid "Product" | ||
634 | 36 | msgstr "Produit" | ||
635 | 37 | |||
636 | 38 | #. module: product_tax_include | ||
637 | 39 | #: field:product.template,price_unit_tax:0 | ||
638 | 40 | msgid "Sale price with taxes included or excluded" | ||
639 | 41 | msgstr "Prix de vente avec taxes incluses ou excluses" | ||
640 | 42 | |||
641 | 43 | #. module: product_tax_include | ||
642 | 44 | #: field:res.company,product_prices_tax_include:0 | ||
643 | 45 | msgid "Prices tax included" | ||
644 | 46 | msgstr "Taxes incluses dans le prix" | ||
645 | 47 | |||
646 | 48 | #. module: product_tax_include | ||
647 | 49 | #: help:res.company,product_prices_tax_include:0 | ||
648 | 50 | msgid "Product prices have tax included." | ||
649 | 51 | msgstr "Taxes incluses dans le prix du produit" | ||
650 | 52 | |||
651 | 53 | #. module: product_tax_include | ||
652 | 54 | #: view:res.company:0 | ||
653 | 55 | msgid "Configuration" | ||
654 | 56 | msgstr "Configuration" | ||
655 | 57 | |||
656 | 58 | #. module: product_tax_include | ||
657 | 59 | #: model:ir.module.module,description:product_tax_include.module_meta_information | ||
658 | 60 | msgid "Add new field for tax include in product\n" | ||
659 | 61 | "\n" | ||
660 | 62 | " OpenERP version : 5.0\n" | ||
661 | 63 | " Creation : 2009-12-05\n" | ||
662 | 64 | " Last update : 2009-12-05\n" | ||
663 | 65 | "" | ||
664 | 66 | msgstr "" | ||
665 | 0 | 67 | ||
666 | === added file 'product_tax_include/i18n/product_tax_include.pot' | |||
667 | --- product_tax_include/i18n/product_tax_include.pot 1970-01-01 00:00:00 +0000 | |||
668 | +++ product_tax_include/i18n/product_tax_include.pot 2010-05-20 07:24:29 +0000 | |||
669 | @@ -0,0 +1,67 @@ | |||
670 | 1 | # Translation of OpenERP Server. | ||
671 | 2 | # This file contains the translation of the following modules: | ||
672 | 3 | # * product_tax_include | ||
673 | 4 | # | ||
674 | 5 | msgid "" | ||
675 | 6 | msgstr "" | ||
676 | 7 | "Project-Id-Version: OpenERP Server 5.0.6\n" | ||
677 | 8 | "Report-Msgid-Bugs-To: support@openerp.com\n" | ||
678 | 9 | "POT-Creation-Date: 2009-12-05 14:38:47+0000\n" | ||
679 | 10 | "PO-Revision-Date: 2009-12-05 14:38:47+0000\n" | ||
680 | 11 | "Last-Translator: <>\n" | ||
681 | 12 | "Language-Team: \n" | ||
682 | 13 | "MIME-Version: 1.0\n" | ||
683 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
684 | 15 | "Content-Transfer-Encoding: \n" | ||
685 | 16 | "Plural-Forms: \n" | ||
686 | 17 | |||
687 | 18 | #. module: product_tax_include | ||
688 | 19 | #: model:ir.module.module,shortdesc:product_tax_include.module_meta_information | ||
689 | 20 | msgid "Product Tax Include" | ||
690 | 21 | msgstr "" | ||
691 | 22 | |||
692 | 23 | #. module: product_tax_include | ||
693 | 24 | #: constraint:ir.ui.view:0 | ||
694 | 25 | msgid "Invalid XML for View Architecture!" | ||
695 | 26 | msgstr "" | ||
696 | 27 | |||
697 | 28 | #. module: product_tax_include | ||
698 | 29 | #: help:product.template,price_unit_tax:0 | ||
699 | 30 | msgid "Price calculated with taxes included or excluded, depend of the configuration in company configuration" | ||
700 | 31 | msgstr "" | ||
701 | 32 | |||
702 | 33 | #. module: product_tax_include | ||
703 | 34 | #: view:res.company:0 | ||
704 | 35 | msgid "Product" | ||
705 | 36 | msgstr "" | ||
706 | 37 | |||
707 | 38 | #. module: product_tax_include | ||
708 | 39 | #: field:product.template,price_unit_tax:0 | ||
709 | 40 | msgid "Sale price with taxes included or excluded" | ||
710 | 41 | msgstr "" | ||
711 | 42 | |||
712 | 43 | #. module: product_tax_include | ||
713 | 44 | #: field:res.company,product_prices_tax_include:0 | ||
714 | 45 | msgid "Prices tax included" | ||
715 | 46 | msgstr "" | ||
716 | 47 | |||
717 | 48 | #. module: product_tax_include | ||
718 | 49 | #: help:res.company,product_prices_tax_include:0 | ||
719 | 50 | msgid "Product prices have tax included." | ||
720 | 51 | msgstr "" | ||
721 | 52 | |||
722 | 53 | #. module: product_tax_include | ||
723 | 54 | #: view:res.company:0 | ||
724 | 55 | msgid "Configuration" | ||
725 | 56 | msgstr "" | ||
726 | 57 | |||
727 | 58 | #. module: product_tax_include | ||
728 | 59 | #: model:ir.module.module,description:product_tax_include.module_meta_information | ||
729 | 60 | msgid "Add new field for tax include in product\n" | ||
730 | 61 | "\n" | ||
731 | 62 | " OpenERP version : 5.0\n" | ||
732 | 63 | " Creation : 2009-12-05\n" | ||
733 | 64 | " Last update : 2009-12-05\n" | ||
734 | 65 | "" | ||
735 | 66 | msgstr "" | ||
736 | 67 | |||
737 | 0 | 68 | ||
738 | === added file 'product_tax_include/i18n/pt.po' | |||
739 | --- product_tax_include/i18n/pt.po 1970-01-01 00:00:00 +0000 | |||
740 | +++ product_tax_include/i18n/pt.po 2010-05-20 07:24:29 +0000 | |||
741 | @@ -0,0 +1,77 @@ | |||
742 | 1 | # Portuguese translation for openobject-addons | ||
743 | 2 | # Copyright (c) 2009 Rosetta Contributors and Canonical Ltd 2009 | ||
744 | 3 | # This file is distributed under the same license as the openobject-addons package. | ||
745 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, 2009. | ||
746 | 5 | # | ||
747 | 6 | msgid "" | ||
748 | 7 | msgstr "" | ||
749 | 8 | "Project-Id-Version: openobject-addons\n" | ||
750 | 9 | "Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" | ||
751 | 10 | "POT-Creation-Date: 2009-12-05 14:38+0000\n" | ||
752 | 11 | "PO-Revision-Date: 2009-12-10 06:00+0000\n" | ||
753 | 12 | "Last-Translator: Fabien (Open ERP) <fp@tinyerp.com>\n" | ||
754 | 13 | "Language-Team: Portuguese <pt@li.org>\n" | ||
755 | 14 | "MIME-Version: 1.0\n" | ||
756 | 15 | "Content-Type: text/plain; charset=UTF-8\n" | ||
757 | 16 | "Content-Transfer-Encoding: 8bit\n" | ||
758 | 17 | "X-Launchpad-Export-Date: 2010-04-09 04:01+0000\n" | ||
759 | 18 | "X-Generator: Launchpad (build Unknown)\n" | ||
760 | 19 | |||
761 | 20 | #. module: product_tax_include | ||
762 | 21 | #: model:ir.module.module,shortdesc:product_tax_include.module_meta_information | ||
763 | 22 | msgid "Product Tax Include" | ||
764 | 23 | msgstr "Artigos Imposto incluido" | ||
765 | 24 | |||
766 | 25 | #. module: product_tax_include | ||
767 | 26 | #: constraint:ir.ui.view:0 | ||
768 | 27 | msgid "Invalid XML for View Architecture!" | ||
769 | 28 | msgstr "XML invƔlido para a arquitectura da vista" | ||
770 | 29 | |||
771 | 30 | #. module: product_tax_include | ||
772 | 31 | #: help:product.template,price_unit_tax:0 | ||
773 | 32 | msgid "" | ||
774 | 33 | "Price calculated with taxes included or excluded, depend of the " | ||
775 | 34 | "configuration in company configuration" | ||
776 | 35 | msgstr "" | ||
777 | 36 | "PreƧo calculado com impostos incluĆdos ou excluĆdos, dependendo da " | ||
778 | 37 | "configuraĆ§Ć£o da companhia." | ||
779 | 38 | |||
780 | 39 | #. module: product_tax_include | ||
781 | 40 | #: view:res.company:0 | ||
782 | 41 | msgid "Product" | ||
783 | 42 | msgstr "Artigo" | ||
784 | 43 | |||
785 | 44 | #. module: product_tax_include | ||
786 | 45 | #: field:product.template,price_unit_tax:0 | ||
787 | 46 | msgid "Sale price with taxes included or excluded" | ||
788 | 47 | msgstr "PreƧo de venda com impostos incluĆdos ou excluĆdos" | ||
789 | 48 | |||
790 | 49 | #. module: product_tax_include | ||
791 | 50 | #: field:res.company,product_prices_tax_include:0 | ||
792 | 51 | msgid "Prices tax included" | ||
793 | 52 | msgstr "PreƧo com impostos incluĆdos" | ||
794 | 53 | |||
795 | 54 | #. module: product_tax_include | ||
796 | 55 | #: help:res.company,product_prices_tax_include:0 | ||
797 | 56 | msgid "Product prices have tax included." | ||
798 | 57 | msgstr "Os preƧos dos artigos tĆŖm imposto incluĆdo." | ||
799 | 58 | |||
800 | 59 | #. module: product_tax_include | ||
801 | 60 | #: view:res.company:0 | ||
802 | 61 | msgid "Configuration" | ||
803 | 62 | msgstr "ConfiguraĆ§Ć£o" | ||
804 | 63 | |||
805 | 64 | #. module: product_tax_include | ||
806 | 65 | #: model:ir.module.module,description:product_tax_include.module_meta_information | ||
807 | 66 | msgid "" | ||
808 | 67 | "Add new field for tax include in product\n" | ||
809 | 68 | "\n" | ||
810 | 69 | " OpenERP version : 5.0\n" | ||
811 | 70 | " Creation : 2009-12-05\n" | ||
812 | 71 | " Last update : 2009-12-05\n" | ||
813 | 72 | msgstr "" | ||
814 | 73 | "Adiciona um novo campoem artigos para impostos incluĆdos\n" | ||
815 | 74 | "\n" | ||
816 | 75 | " OpenERP versĆ£o : 5.0\n" | ||
817 | 76 | " CriaĆ§Ć£o : 2009-12-05\n" | ||
818 | 77 | " Ćltima actualizaĆ§Ć£o : 2009-12-05\n" | ||
819 | 0 | 78 | ||
820 | === added directory 'product_tax_include/object' | |||
821 | === added file 'product_tax_include/object/__init__.py' | |||
822 | --- product_tax_include/object/__init__.py 1970-01-01 00:00:00 +0000 | |||
823 | +++ product_tax_include/object/__init__.py 2010-05-20 07:24:29 +0000 | |||
824 | @@ -0,0 +1,27 @@ | |||
825 | 1 | # -*- coding: utf-8 -*- | ||
826 | 2 | ############################################################################## | ||
827 | 3 | # | ||
828 | 4 | # product_tax_include module for OpenERP, Add new field for tax include in product | ||
829 | 5 | # Copyright (C) 2009 SYLEAM Info Services (<http://www.Syleam.fr/>) Sebastien LANGE | ||
830 | 6 | # | ||
831 | 7 | # This file is a part of product_tax_include | ||
832 | 8 | # | ||
833 | 9 | # product_tax_include is free software: you can redistribute it and/or modify | ||
834 | 10 | # it under the terms of the GNU General Public License as published by | ||
835 | 11 | # the Free Software Foundation, either version 3 of the License, or | ||
836 | 12 | # (at your option) any later version. | ||
837 | 13 | # | ||
838 | 14 | # product_tax_include is distributed in the hope that it will be useful, | ||
839 | 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
840 | 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
841 | 17 | # GNU General Public License for more details. | ||
842 | 18 | # | ||
843 | 19 | # You should have received a copy of the GNU General Public License | ||
844 | 20 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
845 | 21 | # | ||
846 | 22 | ############################################################################## | ||
847 | 23 | |||
848 | 24 | import product | ||
849 | 25 | import company | ||
850 | 26 | |||
851 | 27 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
852 | 0 | 28 | ||
853 | === added file 'product_tax_include/object/company.py' | |||
854 | --- product_tax_include/object/company.py 1970-01-01 00:00:00 +0000 | |||
855 | +++ product_tax_include/object/company.py 2010-05-20 07:24:29 +0000 | |||
856 | @@ -0,0 +1,40 @@ | |||
857 | 1 | # -*- coding: utf-8 -*- | ||
858 | 2 | ############################################################################## | ||
859 | 3 | # | ||
860 | 4 | # product_tax_include module for OpenERP, Add new field for tax include in product | ||
861 | 5 | # Copyright (C) 2009 SYLEAM Info Services (<http://www.Syleam.fr/>) Sebastien LANGE | ||
862 | 6 | # | ||
863 | 7 | # This file is a part of product_tax_include | ||
864 | 8 | # | ||
865 | 9 | # product_tax_include is free software: you can redistribute it and/or modify | ||
866 | 10 | # it under the terms of the GNU General Public License as published by | ||
867 | 11 | # the Free Software Foundation, either version 3 of the License, or | ||
868 | 12 | # (at your option) any later version. | ||
869 | 13 | # | ||
870 | 14 | # product_tax_include is distributed in the hope that it will be useful, | ||
871 | 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
872 | 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
873 | 17 | # GNU General Public License for more details. | ||
874 | 18 | # | ||
875 | 19 | # You should have received a copy of the GNU General Public License | ||
876 | 20 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
877 | 21 | # | ||
878 | 22 | ############################################################################## | ||
879 | 23 | |||
880 | 24 | |||
881 | 25 | from osv import osv | ||
882 | 26 | from osv import fields | ||
883 | 27 | |||
884 | 28 | class company(osv.osv): | ||
885 | 29 | _inherit = 'res.company' | ||
886 | 30 | _columns = { | ||
887 | 31 | 'product_prices_tax_include': fields.boolean('Prices tax included', | ||
888 | 32 | help="Product prices have tax included."), | ||
889 | 33 | } | ||
890 | 34 | _defaults = { | ||
891 | 35 | 'product_prices_tax_include': lambda *a: True, | ||
892 | 36 | } | ||
893 | 37 | |||
894 | 38 | company() | ||
895 | 39 | |||
896 | 40 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
897 | 0 | 41 | ||
898 | === added file 'product_tax_include/object/product.py' | |||
899 | --- product_tax_include/object/product.py 1970-01-01 00:00:00 +0000 | |||
900 | +++ product_tax_include/object/product.py 2010-05-20 07:24:29 +0000 | |||
901 | @@ -0,0 +1,74 @@ | |||
902 | 1 | # -*- coding: utf-8 -*- | ||
903 | 2 | ############################################################################## | ||
904 | 3 | # | ||
905 | 4 | # product_tax_include module for OpenERP, Add new field for tax include in product | ||
906 | 5 | # Copyright (C) 2009 SYLEAM Info Services (<http://www.Syleam.fr/>) Sebastien LANGE | ||
907 | 6 | # | ||
908 | 7 | # This file is a part of product_tax_include | ||
909 | 8 | # | ||
910 | 9 | # product_tax_include is free software: you can redistribute it and/or modify | ||
911 | 10 | # it under the terms of the GNU General Public License as published by | ||
912 | 11 | # the Free Software Foundation, either version 3 of the License, or | ||
913 | 12 | # (at your option) any later version. | ||
914 | 13 | # | ||
915 | 14 | # product_tax_include is distributed in the hope that it will be useful, | ||
916 | 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
917 | 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
918 | 17 | # GNU General Public License for more details. | ||
919 | 18 | # | ||
920 | 19 | # You should have received a copy of the GNU General Public License | ||
921 | 20 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
922 | 21 | # | ||
923 | 22 | ############################################################################## | ||
924 | 23 | |||
925 | 24 | from osv import fields | ||
926 | 25 | from osv import osv | ||
927 | 26 | from tools import config | ||
928 | 27 | |||
929 | 28 | from tools.translate import _ | ||
930 | 29 | |||
931 | 30 | class product_template(osv.osv): | ||
932 | 31 | _inherit = 'product.template' | ||
933 | 32 | |||
934 | 33 | def _price_unit_tax(self, cr, uid, ids, field_name, arg, context=None): | ||
935 | 34 | """This method calcul the sale price with/without taxes included depending on company configuration""" | ||
936 | 35 | if not context: context = {} | ||
937 | 36 | res = {} | ||
938 | 37 | tax_obj = self.pool.get('account.tax') | ||
939 | 38 | users_obj = self.pool.get('res.users') | ||
940 | 39 | user = users_obj.browse(cr, uid, uid, context) | ||
941 | 40 | prices_tax_include = user.company_id.product_prices_tax_include | ||
942 | 41 | cur_obj = self.pool.get('res.currency') | ||
943 | 42 | cur = user.company_id.partner_id.property_product_pricelist.currency_id | ||
944 | 43 | |||
945 | 44 | for product in self.browse(cr, uid, ids): | ||
946 | 45 | val = 0.0 | ||
947 | 46 | if prices_tax_include: | ||
948 | 47 | val = reduce(lambda x, y: x+cur_obj.round(cr, uid, cur, y['amount']), | ||
949 | 48 | tax_obj.compute_inv(cr, uid, product.taxes_id, | ||
950 | 49 | product.list_price, 1), | ||
951 | 50 | val) | ||
952 | 51 | res[product.id] = cur_obj.round(cr, uid, cur, (product.list_price - val)) | ||
953 | 52 | else: | ||
954 | 53 | val = reduce(lambda x, y: x+cur_obj.round(cr, uid, cur, y['amount']), | ||
955 | 54 | tax_obj.compute(cr, uid, product.taxes_id, | ||
956 | 55 | product.list_price, 1), | ||
957 | 56 | val) | ||
958 | 57 | res[product.id] = cur_obj.round(cr, uid, cur, (product.list_price + val)) | ||
959 | 58 | return res | ||
960 | 59 | |||
961 | 60 | _columns = { | ||
962 | 61 | 'price_unit_tax' : fields.function(_price_unit_tax, | ||
963 | 62 | method=True, | ||
964 | 63 | string='price inc./exc. tax', | ||
965 | 64 | store=False, | ||
966 | 65 | type='float', | ||
967 | 66 | digits=(16, int(config['price_accuracy'])), | ||
968 | 67 | help="Price calculated with taxes included or excluded, depend of the configuration in company configuration"), | ||
969 | 68 | } | ||
970 | 69 | |||
971 | 70 | product_template() | ||
972 | 71 | |||
973 | 72 | |||
974 | 73 | |||
975 | 74 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
976 | 0 | 75 | ||
977 | === removed file 'product_tax_include/product.py' | |||
978 | --- product_tax_include/product.py 2010-05-19 08:34:42 +0000 | |||
979 | +++ product_tax_include/product.py 1970-01-01 00:00:00 +0000 | |||
980 | @@ -1,54 +0,0 @@ | |||
981 | 1 | # -*- encoding: utf-8 -*- | ||
982 | 2 | ############################################################################## | ||
983 | 3 | # | ||
984 | 4 | # OpenERP, Open Source Management Solution | ||
985 | 5 | # Copyright (C) 2004-2009 Smile.fr . All Rights Reserved | ||
986 | 6 | # @author Raphaƫl Valyi, Amadou Diallo | ||
987 | 7 | # | ||
988 | 8 | # This program is free software: you can redistribute it and/or modify | ||
989 | 9 | # it under the terms of the GNU General Public License as published by | ||
990 | 10 | # the Free Software Foundation, either version 3 of the License, or | ||
991 | 11 | # (at your option) any later version. | ||
992 | 12 | # | ||
993 | 13 | # This program is distributed in the hope that it will be useful, | ||
994 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
995 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
996 | 16 | # GNU General Public License for more details. | ||
997 | 17 | # | ||
998 | 18 | # You should have received a copy of the GNU General Public License | ||
999 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
1000 | 20 | # | ||
1001 | 21 | ############################################################################## | ||
1002 | 22 | |||
1003 | 23 | from osv import fields,osv | ||
1004 | 24 | |||
1005 | 25 | class product_product(osv.osv): | ||
1006 | 26 | _inherit = "product.product" | ||
1007 | 27 | |||
1008 | 28 | def list_price_change(self, cr, uid, ids, list_price=False, sale_tax_ids=False): | ||
1009 | 29 | res = {} | ||
1010 | 30 | if sale_tax_ids: | ||
1011 | 31 | sale_tax_ids = sale_tax_ids[0][2] #unwrapp the tax ids | ||
1012 | 32 | price = list_price | ||
1013 | 33 | product_taxes = self.pool.get('account.tax').browse(cr, uid, sale_tax_ids, {}) | ||
1014 | 34 | for tax in self.pool.get('account.tax').compute(cr, uid, product_taxes, list_price, 1): | ||
1015 | 35 | price += tax['amount'] | ||
1016 | 36 | res = {'value':{'list_price_tax_incl':price}} | ||
1017 | 37 | return res | ||
1018 | 38 | |||
1019 | 39 | def list_price_tax_incl_change(self, cr, uid, ids, list_price_tax_incl=False, sale_tax_ids=False): | ||
1020 | 40 | res = {} | ||
1021 | 41 | if sale_tax_ids: | ||
1022 | 42 | sale_tax_ids = sale_tax_ids[0][2] #unwrapp the tax ids | ||
1023 | 43 | price = list_price_tax_incl | ||
1024 | 44 | product_taxes = self.pool.get('account.tax').browse(cr, uid, sale_tax_ids, {}) | ||
1025 | 45 | for tax in self.pool.get('account.tax').compute_inv(cr, uid, product_taxes, list_price_tax_incl, 1): | ||
1026 | 46 | price -= tax['amount'] | ||
1027 | 47 | res = {'value':{'list_price':price}} | ||
1028 | 48 | return res | ||
1029 | 49 | |||
1030 | 50 | |||
1031 | 51 | _columns = { | ||
1032 | 52 | 'list_price_tax_incl': fields.float('Price Taxes Included'), | ||
1033 | 53 | } | ||
1034 | 54 | product_product() | ||
1035 | 55 | \ No newline at end of file | 0 | \ No newline at end of file |
1036 | 56 | 1 | ||
1037 | === removed file 'product_tax_include/product_view.xml' | |||
1038 | --- product_tax_include/product_view.xml 2010-05-19 08:34:42 +0000 | |||
1039 | +++ product_tax_include/product_view.xml 1970-01-01 00:00:00 +0000 | |||
1040 | @@ -1,31 +0,0 @@ | |||
1041 | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
1042 | 2 | <openerp> | ||
1043 | 3 | <data> | ||
1044 | 4 | |||
1045 | 5 | <record id="view_normal_product_tax_incl_form" model="ir.ui.view"> | ||
1046 | 6 | <field name="name">view_normal_product_tax_incl_form</field> | ||
1047 | 7 | <field name="model">product.product</field> | ||
1048 | 8 | <field name="type">form</field> | ||
1049 | 9 | <field name="inherit_id" ref="product.product_normal_form_view"/> | ||
1050 | 10 | <field name="arch" type="xml"> | ||
1051 | 11 | <field name="list_price" position="replace"> | ||
1052 | 12 | <field name="list_price" on_change="list_price_change(list_price, taxes_id)"/> | ||
1053 | 13 | <field name="list_price_tax_incl" on_change="list_price_tax_incl_change(list_price_tax_incl, taxes_id)"/> | ||
1054 | 14 | </field> | ||
1055 | 15 | </field> | ||
1056 | 16 | </record> | ||
1057 | 17 | |||
1058 | 18 | <record id="view_normal__product_tax_incl_tree" model="ir.ui.view"> | ||
1059 | 19 | <field name="name">view_normal__product_tax_incl_tree</field> | ||
1060 | 20 | <field name="model">product.product</field> | ||
1061 | 21 | <field name="type">tree</field> | ||
1062 | 22 | <field name="inherit_id" ref="product.product_product_tree_view"/> | ||
1063 | 23 | <field name="arch" type="xml"> | ||
1064 | 24 | <field name="standard_price" position="before"> | ||
1065 | 25 | <field name="list_price_tax_incl" /> | ||
1066 | 26 | </field> | ||
1067 | 27 | </field> | ||
1068 | 28 | </record> | ||
1069 | 29 | |||
1070 | 30 | </data> | ||
1071 | 31 | </openerp> | ||
1072 | 32 | \ No newline at end of file | 0 | \ No newline at end of file |
1073 | 33 | 1 | ||
1074 | === added directory 'product_tax_include/view' | |||
1075 | === added file 'product_tax_include/view/company.xml' | |||
1076 | --- product_tax_include/view/company.xml 1970-01-01 00:00:00 +0000 | |||
1077 | +++ product_tax_include/view/company.xml 2010-05-20 07:24:29 +0000 | |||
1078 | @@ -0,0 +1,41 @@ | |||
1079 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
1080 | 2 | <openerp> | ||
1081 | 3 | <data> | ||
1082 | 4 | ############################################################################## | ||
1083 | 5 | # | ||
1084 | 6 | # product_tax_include module for OpenERP, Add new field for tax include in product | ||
1085 | 7 | # Copyright (C) 2009 SYLEAM Info Services ([http://www.Syleam.fr/]) Sebastien LANGE | ||
1086 | 8 | # | ||
1087 | 9 | # This file is a part of product_tax_include | ||
1088 | 10 | # | ||
1089 | 11 | # product_tax_include is free software: you can redistribute it and/or modify | ||
1090 | 12 | # it under the terms of the GNU General Public License as published by | ||
1091 | 13 | # the Free Software Foundation, either version 3 of the License, or | ||
1092 | 14 | # (at your option) any later version. | ||
1093 | 15 | # | ||
1094 | 16 | # product_tax_include is distributed in the hope that it will be useful, | ||
1095 | 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1096 | 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1097 | 19 | # GNU General Public License for more details. | ||
1098 | 20 | # | ||
1099 | 21 | # You should have received a copy of the GNU General Public License | ||
1100 | 22 | # along with this program. If not, see [http://www.gnu.org/licenses/]. | ||
1101 | 23 | # | ||
1102 | 24 | ############################################################################## | ||
1103 | 25 | |||
1104 | 26 | <record id="product_company" model="ir.ui.view"> | ||
1105 | 27 | <field name="name">res.company.product.config</field> | ||
1106 | 28 | <field name="model">res.company</field> | ||
1107 | 29 | <field name="type">form</field> | ||
1108 | 30 | <field name="inherit_id" ref="base.view_company_form"/> | ||
1109 | 31 | <field name="arch" type="xml"> | ||
1110 | 32 | <page string="Configuration" position="inside"> | ||
1111 | 33 | <separator string="Product" colspan="4"/> | ||
1112 | 34 | <field name="product_prices_tax_include"/> | ||
1113 | 35 | <newline/> | ||
1114 | 36 | </page> | ||
1115 | 37 | </field> | ||
1116 | 38 | </record> | ||
1117 | 39 | |||
1118 | 40 | </data> | ||
1119 | 41 | </openerp> | ||
1120 | 0 | 42 | ||
1121 | === added file 'product_tax_include/view/product.xml' | |||
1122 | --- product_tax_include/view/product.xml 1970-01-01 00:00:00 +0000 | |||
1123 | +++ product_tax_include/view/product.xml 2010-05-20 07:24:29 +0000 | |||
1124 | @@ -0,0 +1,38 @@ | |||
1125 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
1126 | 2 | <openerp> | ||
1127 | 3 | <data> | ||
1128 | 4 | ############################################################################## | ||
1129 | 5 | # | ||
1130 | 6 | # product_tax_include module for OpenERP, Add new field for tax include in product | ||
1131 | 7 | # Copyright (C) 2009 SYLEAM Info Services ([http://www.Syleam.fr/]) Sebastien LANGE | ||
1132 | 8 | # | ||
1133 | 9 | # This file is a part of product_tax_include | ||
1134 | 10 | # | ||
1135 | 11 | # product_tax_include is free software: you can redistribute it and/or modify | ||
1136 | 12 | # it under the terms of the GNU General Public License as published by | ||
1137 | 13 | # the Free Software Foundation, either version 3 of the License, or | ||
1138 | 14 | # (at your option) any later version. | ||
1139 | 15 | # | ||
1140 | 16 | # product_tax_include is distributed in the hope that it will be useful, | ||
1141 | 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1142 | 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1143 | 19 | # GNU General Public License for more details. | ||
1144 | 20 | # | ||
1145 | 21 | # You should have received a copy of the GNU General Public License | ||
1146 | 22 | # along with this program. If not, see [http://www.gnu.org/licenses/]. | ||
1147 | 23 | # | ||
1148 | 24 | ############################################################################## | ||
1149 | 25 | |||
1150 | 26 | <record model="ir.ui.view" id="product_tax_include_form"> | ||
1151 | 27 | <field name="name">product.tax.include</field> | ||
1152 | 28 | <field name="model">product.product</field> | ||
1153 | 29 | <field name="type">form</field> | ||
1154 | 30 | <field name="inherit_id" ref="product.product_normal_form_view"/> | ||
1155 | 31 | <field name="arch" type="xml"> | ||
1156 | 32 | <field name="price_margin" position="after"> | ||
1157 | 33 | <field name="price_unit_tax"/> | ||
1158 | 34 | </field> | ||
1159 | 35 | </field> | ||
1160 | 36 | </record> | ||
1161 | 37 | </data> | ||
1162 | 38 | </openerp> |