Somesh Khare has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-51238-skh into
lp:openobject-addons/6.0.
Requested reviews:
Vinay Rana (openerp) (vra-openerp)
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-51238-skh/+merge/86784
Hello Sir,
Scenario:
Create two service type product, prestations, régie.
1. Select the timesheet tab on the Employee "Admin" form and select the
product "prestations" , who have no taxes
2. Give the taxes on the Product "régie" (basic taxes for sales and
purchase)
3. The user "Admin" do a sign in and a sign out from the " Human
Resources/Attendances/Sign in / Sign out by project".
When you run the wizard for Billing Data from "Accounting/Periodical
Processing/Billing/Bill Tasks Works" It creates a invoice for the product,
which you provided on the Wizard form. Invoice has no taxes for the product
"régie".
[Fix]: This branch fixes this issue.
Kindly review the branch and share your views on it.
Thanks,
Somesh Khare
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-51238-skh/+merge/86784
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-51238-skh.
=== modified file 'hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py'
--- hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py 2011-04-21 07:45:29 +0000
+++ hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py 2011-12-23 09:00:31 +0000
@@ -70,6 +70,7 @@
account_ids[line.account_id.id] = True
account_ids = account_ids.keys() #data['accounts']
+ taxes = []
for account in analytic_account_obj.browse(cr, uid, account_ids, context=context):
partner = account.partner_id
if (not partner) or not (account.pricelist_id):
@@ -136,8 +137,10 @@
price = pro_price_obj.price_get(cr,uid,[pl], data['product'] or product_id, qty or 1.0, account.partner_id.id, context=ctx)[pl]
else:
price = 0.0
-
taxes = product.taxes_id
+ wiz_obj = self.browse(cr,uid,ids[0],context)
+ if wiz_obj.product and wiz_obj.product.taxes_id:
+ taxes = wiz_obj.product.taxes_id
tax = fiscal_pos_obj.map_tax(cr, uid, account.partner_id.property_account_position, taxes)
account_id = product.product_tmpl_id.property_account_income.id or product.categ_id.property_account_income_categ.id
curr_line = {
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp