oca / account-invoicing Goto Github PK
View Code? Open in Web Editor NEWOdoo Invoicing Extension Addons
License: GNU Affero General Public License v3.0
Odoo Invoicing Extension Addons
License: GNU Affero General Public License v3.0
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-11.0
Dear All,
I've implemented it on version 9.0.
The indicator "no follow up" on vendor bills appears.
I've set it.
Unfortunately, the payment was still possible.
The expected behavior could be the payment is forbidden with this indicator.
Regards
claudio candito
For information, I am starting the migration of account_invoice_merge to Odoo 8.0
Dear all,
I've set the no follow up indicator for an invoice document with higher price difference.
Besides that, it has been possible to proceed on invoice payment.
what should be done is to forbid through an error system message to register any payment on that invoice.
For paying it, the follow on indicator should be removed manually before.
Regards
claudio Candito
module: account_invoice_rounding
version: 8.0
Steps to reproduce
Current behavior
error raised
Expected behavior
as with only one sale line created
Dear All,
I've supposed this module is not migrated yet because another one is in place instead of it.
Please help me suggesting it.
If not, there is any plan to migrate it in version 10.
Regards
thanks in advance
claudio candito
Can't group by account if the entry is from pos. If the entry is from Sales (different journal)everything is OK
While combining purchase invoices, all pickings are marked as invoiced
Example: 1 purchase order, ends divided in 3 pickings, and 2 of them are invoiced, then when those 2 invoices are merged, the 3rd picking that was waiting is marked also as invoiced.
I think the problem is the for loop at the end of the do_merge, which marks all stock moves related to the purchase order as invoiced, and i think this is wrong, since stock moves are already invoiced except the ones in the pending picking.
When installing the module, the buttons are lost when you see the bill: "Send to Email", "Register payment" and "Reintegrating invoice".
To correct this, I uninstall the module, and buttons appear again.
I think a budget, do valid, confirmed the sale, and I believe the bill, so far, so good, the problem is when I go to validate it, to click on "Validate" does nothing. It is like nothing to validate. From here I can not pass.
They could give me a help please?
Excuse my translation.
Dear All,
it is possible to have the porting of "account_invoice_refund_option" in version 10?
is there some other function implemented instead?
regards
claudio candito
The current SO link algorithm is wrong in some cases.
eg:
SO1 - Line1 : product1 2 pieces
SO2 - Line1 : product1 4 pieces
MAke invoices on both SO, merge the two invoice and check the SO lines:
both of the SO-s have 6 invoiced pieces, because the current algorithm is links all invoice lines with the same product to SO lines.
Solution:
Remove the current algorithm completly:
# Make link between original sale order
# None if sale is not installed
# so_line_obj = self.env['sale.order.line']
# if 'sale.order' in self.env.registry else False
# invoice_line_obj = self.env['account.invoice.line']
# _logger.error('INFO: %s ', invoices_info)
# for new_invoice_id in invoices_info:
# if so_line_obj is not False:
# so_lines = so_line_obj.search(
# [('invoice_lines.invoice_id', 'in', invoices_info[
# new_invoice_id])])
# for so_line in so_lines:
# invoice_lines = invoice_line_obj.search(
# [('product_id', '=', so_line.product_id.id),
# ('invoice_id', '=', new_invoice_id)])
# if invoice_lines:
# so_line.write(
# {'invoice_lines': [(6, 0, invoice_lines.ids)]})
add 2 lines at def _get_invoice_line_key_cols(self):
fields = [
'name', 'origin', 'discount', 'invoice_line_tax_ids', 'price_unit',
'product_id', 'account_id', 'account_analytic_id',
'uom_id'
]
+ if 'sale.order' in self.env.registry:
+ fields.append('sale_line_ids')
it will connect the new lines to the SO lines, and keep connected the old INVOICE lines. Te old ones are in deleted state, so they don't count in invoiced on SO lines. If you delete the merged invoice, and reactivate the deleted original invoices, the count would be good too. I think, this is the best behavior for the users.
Check the PO section, if it has some side effects, or not.
This is an RFC proposing an approach to handing fixed amount discounts in invoices.
See OCA/sale-workflow#521 for fixed amount discount in sales order lines.
In order to implement this, we 'd follow a similar approach as https://github.com/OCA/account-invoicing/blob/10.0/account_invoice_triple_discount/models/account_invoice.py
Hi,
the commit ( @luc-demeyer luc-demeyer committed with pedrobaeza on 21 Jan, f333de2)
changed the return value of do_merge(...) from account_invoice_merge/models/account_invoice.py :
It was : return invoices_info
and it becomed : return invoices_info, invoice_lines_info
(last line : 221)
but, account_invoice_merge/wizard/invoice_merge.py in merge_invoices(self) line 87 calls it
allinvoices = invoices.do_merge(keep_references=self.keep_references,
date_invoice=self.date_invoice)
and remained unchanged
I fixed the issue in probably dirty way by doing
(allinvoices, dummy) = invoices.do_merge(keep_references=self.keep_references,
date_invoice=self.date_invoice)
but, as I am quite new in odoo
also because there is a big PR (8.0 account_invoice_merge fixes #220)
It prefer not going too far and push only an issue
Hello guys,
As you know, in Sweden and in Canada, they do cash rounding (https://en.wikipedia.org/wiki/Cash_rounding).
In those two countries cash rounding is applied only to purchase paid in CASH. Not to purchase paid with check or credit card.
So, I have installed the module account_invoice_rounding in my Odoo 8.0 (https://github.com/OCA/account-invoicing/tree/8.0/account_invoice_rounding).
This module make a new « rounding » line in an invoice when we update or save this invoice.
The problem :
When we create a new invoice, this invoice is not paid. It is open. Why does the module create a new line if it doesn't even know if the payment will be in cash????
If the payment is not made in cash, we don't have to make a cash rounding...
Do you agree? How do you see it?
Hello guys,
I recieved this error when i try to merge 2 invoices, can you please help me solve this issue.
Traceback (most recent call last):
File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/http.py", line 517, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/http.py", line 538, in dispatch
result = self._call_function(**self.params)
File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/http.py", line 294, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/http.py", line 291, in checked_call
return self.endpoint(*a, **kw)
File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/http.py", line 754, in call
return self.method(*args, **kw)
File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/http.py", line 387, in response_wrap
response = f(*args, **kw)
File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/addons/web/controllers/main.py", line 953, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/addons/web/controllers/main.py", line 941, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/api.py", line 360, in old_api
result = method(recs, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-8.0_a2115ef-py2.7.egg/openerp/addons/account_invoice_merge/wizard/invoice_merge.py", line 96, in merge_invoices
'domain': [('id', 'in', ids + allinvoices.keys())],
AttributeError: 'tuple' object has no attribute 'keys'
Should we be worried about:
https://github.com/OCA/account-invoicing/tree/8.0/account_invoice_default_company_bank_partner/i18n
https://github.com/OCA/account-invoicing/tree/8.0/account_invoice_default_company_bank_repair/i18n
https://github.com/OCA/account-invoicing/tree/8.0/account_invoice_default_company_bank_sale/i18n
They seem empty except for some PO files?
Hello there,
When I install the module, then I go in settings -> Configuration -> Invoicing, all is right and I see the new fields from your module.
But when I after uninstall the module, and after I go in settings -> Configuration -> Invoicing, get this error :::
Traceback (most recent call last):
File "/home/odoo-test/odoo-8.0-20151203/openerp/http.py", line 537, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo-test/odoo-8.0-20151203/openerp/http.py", line 574, in dispatch
result = self._call_function(**self.params)
File "/home/odoo-test/odoo-8.0-20151203/openerp/http.py", line 310, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo-test/odoo-8.0-20151203/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo-test/odoo-8.0-20151203/openerp/http.py", line 307, in checked_call
return self.endpoint(*a, **kw)
File "/home/odoo-test/odoo-8.0-20151203/openerp/http.py", line 803, in __call__
return self.method(*args, **kw)
File "/home/odoo-test/odoo-8.0-20151203/openerp/http.py", line 403, in response_wrap
response = f(*args, **kw)
File "/home/odoo-test/odoo-8.0-20151203/openerp/addons/web/controllers/main.py", line 944, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo-test/odoo-8.0-20151203/openerp/addons/web/controllers/main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/home/odoo-test/odoo-8.0-20151203/openerp/api.py", line 256, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo-test/odoo-8.0-20151203/openerp/api.py", line 387, in old_api
result = method(recs, *args, **kwargs)
File "/home/odoo-test/odoo-8.0-20151203/openerp/models.py", line 5957, in onchange
record._onchange_eval(name, field_onchange[name], result)
File "/home/odoo-test/odoo-8.0-20151203/openerp/models.py", line 5870, in _onchange_eval
self.update(self._convert_to_cache(method_res['value'], validate=False))
File "/home/odoo-test/odoo-8.0-20151203/openerp/models.py", line 5468, in update
self[name] = value
File "/home/odoo-test/odoo-8.0-20151203/openerp/models.py", line 5650, in __setitem__
return self._fields[key].__set__(self, value)
File "/home/odoo-test/odoo-8.0-20151203/openerp/fields.py", line 835, in __set__
value = self.convert_to_cache(value, record)
File "/home/odoo-test/odoo-8.0-20151203/openerp/fields.py", line 1404, in convert_to_cache
raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for account.config.settings.tax_calculation_rounding_method: u'swedish_add_invoice_line'
In module: account_invoice_fiscal_position_update
File: models/invoice.py
There is a little bug when working with tax VAT included.
The price used is the product_price (VAT included), and not the base.
Odoo already handle this, so I suggest to replace the code by:
@api.onchange('fiscal_position_id')
def fiscal_position_change(self):
"""Updates taxes and accounts on all invoice lines"""
self.ensure_one()
for line in self.invoice_line_ids:
line._set_taxes()
Thanks
after installing the module, when i go to accounting module...... error
ValueError: Invalid field u'type' in leaf "<osv.ExtendedLeaf: (u'type', u'in', [u'out_invoice', u'out_refund']) on base_kanban_stage (ctx: )>"
I can't merge 2 customer refund invoices. Them have same partner, currency, salesman, salesman team, journal, and account. The status of both invoices is draft. I get this error on mergin:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 544, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 581, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 317, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 314, in checked_call
return self.endpoint(*a, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 810, in call
return self.method(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 410, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 948, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 399, in old_api
result = method(recs, *args, **kwargs)
File "/home/ubuntu/git/odoo_addons_downloaded/account_invoice_merge/wizard/invoice_merge.py", line 87, in merge_invoices
keep_references=self.keep_references,
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 266, in wrapper
return new_api(self, *args, **kwargs)
File "/home/ubuntu/git/odoo_addons_downloaded/account_invoice_merge/models/account_invoice.py", line 197, in do_merge
if 'sale.order' in self.env.registry:
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 266, in wrapper
return new_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 592, in new_api
result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/website_quote/models/order.py", line 124, in write
return super(sale_order_line, self).write(cr, uid, ids, values, context=context)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 399, in old_api
result = method(recs, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 3792, in write
self._write(old_vals)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 266, in wrapper
return new_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 592, in new_api
result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 3942, in _write
result += self._columns[field].set(cr, self, id, field, vals[field], user, context=rel_context) or []
File "/usr/lib/python2.7/dist-packages/openerp/osv/fields.py", line 1046, in set
link(act[2])
File "/usr/lib/python2.7/dist-packages/openerp/osv/fields.py", line 1016, in link
cr.execute(query, (id, list(sub_ids), id))
File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 158, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 234, in execute
res = self._obj.execute(query, params)
ProgrammingError: can't adapt type 'account.invoice.line'
stock_picking_invoicing
lets us change the invoice state on pickings, but the standard now lets us do that without a module since odoo/odoo@cdce2e2 .
2016-09-17 03:20:59,288 24104 INFO openerp_test openerp.addons.account_invoice_merge_purchase.tests.test_account_invoice_merge_purchase: ======================================================================
2016-09-17 03:20:59,288 24104 ERROR openerp_test openerp.addons.account_invoice_merge_purchase.tests.test_account_invoice_merge_purchase: FAIL: test_picking_multi_purchase_order (openerp.addons.account_invoice_merge_purchase.tests.test_account_invoice_merge_purchase.TestAccountInvoiceMergePurchase)
2016-09-17 03:20:59,288 24104 ERROR openerp_test openerp.addons.account_invoice_merge_purchase.tests.test_account_invoice_merge_purchase: Traceback (most recent call last):
2016-09-17 03:20:59,288 24104 ERROR openerp_test openerp.addons.account_invoice_merge_purchase.tests.test_account_invoice_merge_purchase: ` File "/home/travis/build/OCA/account-invoicing/account_invoice_merge_purchase/tests/test_account_invoice_merge_purchase.py", line 167, in test_picking_multi_purchase_order
2016-09-17 03:20:59,288 24104 ERROR openerp_test openerp.addons.account_invoice_merge_purchase.tests.test_account_invoice_merge_purchase: ` self.assertEqual(purchase_order01.state, 'done')
2016-09-17 03:20:59,289 24104 ERROR openerp_test openerp.addons.account_invoice_merge_purchase.tests.test_account_invoice_merge_purchase: ` AssertionError: u'approved' != 'done'
2016-09-17 03:20:59,289 24104 INFO openerp_test openerp.addons.account_invoice_merge_purchase.tests.test_account_invoice_merge_purchase: Ran 2 tests in 6.990s
2016-09-17 03:20:59,289 24104 ERROR openerp_test openerp.addons.account_invoice_merge_purchase.tests.test_account_invoice_merge_purchase: FAILED
this module in presence of stock_transport_multi_address should transfer the invoice shipping address using right field delivery_address_id from stock.picking
maybe we could add stock_transport_multi_address dependency and use delivery_address_id as proposed
https://github.com/OCA/account-invoicing/blob/8.0/account_invoice_shipping_address/stock.py#L33
I just did a quick test. I created 2 SO with an invoicing policy : on delivery. I delivered and generate invoices.
I merged the 2 invoices (with same partner)...fine
But on the SO the check box 'Paid' is not checked.
Is it an know issue ?
Thanks
Frederic
This module creates the analytic lines of the cost of goods sold when the customer invoice/refund is validated.
In Accounting / Configuration / Settings
In your company, check the anglo-saxon accounting box
In your product category, choose "Perpetual (automated)" as the inventory valuation
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-9.0
Dear All,
from my perspective, the invoice data should be included also in the check.
in short, two invoices with same vendor code and same reference, but different document date (mainly the year) are not to be set as duplicated.
Regards
claudio candito
Dear All,
I'm not able to find the app "purchase_stock_picking_return_invoicing" in version 10 in the related github section.
Perhaps it has been renamed or merge with another app?
please help me because this has been very useful in version 9.
Regards
claudio candito
the invoice_validation_wkfl addon breaks the transition between draft and cancel states
because
https://github.com/OCA/account-invoicing/blob/7.0/invoice_validation_wkfl/invoice_wkf.xml#L42
overwrites
https://github.com/odoo/odoo/blob/7.0/addons/account/account_invoice_workflow.xml#L68
@alexis-via When creating the invoice from interface, and have a mapping from a tax to another (that's the common fiscal position behaviour), the taxes on invoice lines are set on product purchase base tax instead of the mapped tax.
After debugging, it seems that when the fiscal_position_change
function is called, the fiscal position is not yet defined on the invoice.
Then, another onchange change the value of fiscal position and the fiscal_position_change
is not called anymore.
The user has either to change back and forth the partner or the fiscal position to get a safe information.
Odoo version 8.0 / Ubuntu 14.10
I've install account_invoice_force_number module and it won't show me the "force number" option on my invoice form.
Hi,
I have installed account_invoice_merge plugin, but when I try to merge two invoices it doesn't work and I don't know why. I was looking for information about this issue but have find anything.
I put here the Traceback of the error:
2018-03-09 08:44:23,787 10763 ERROR produccion odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 640, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 677, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 333, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 326, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 935, in call
return self.method(*args, **kw)
File "/usr/lib/python2.7/site-packages/odoo/http.py", line 506, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/site-packages/odoo/addons/web/controllers/main.py", line 889, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python2.7/site-packages/odoo/addons/web/controllers/main.py", line 877, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python2.7/site-packages/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python2.7/site-packages/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/var/lib/odoo/addons/10.0/modulos_OCA/account_invoice_merge_attachment/wizards/invoice_merge.py", line 18, in merge_invoices
link_attachment=self.link_attachment
File "/var/lib/odoo/addons/10.0/modulos_OCA/account_invoice_merge/wizard/invoice_merge.py", line 89, in merge_invoices
date_invoice=self.date_invoice)
File "/var/lib/odoo/addons/10.0/modulos_OCA/account_invoice_merge_attachment/models/account_invoice.py", line 15, in do_merge
keep_references=keep_references, date_invoice=date_invoice)
File "/var/lib/odoo/addons/10.0/modulos_OCA/account_invoice_merge/models/account_invoice.py", line 181, in do_merge
newinvoice = self.with_context(is_merge=True).create(invoice_data)
File "/var/lib/odoo/addons/10.0/customized_invoice/models/invoice.py", line 46, in create
res = super(InvoiceTemplates, self).create(vals)
File "/var/lib/odoo/addons/10.0/modulos_OCA/account_banking_mandate/models/account_invoice.py", line 50, in create
return super(AccountInvoice, self).create(vals)
File "/usr/lib/python2.7/site-packages/odoo/addons/purchase/models/account_invoice.py", line 199, in create
invoice = super(AccountInvoice, self).create(vals)
File "/var/lib/odoo/addons/10.0/modulos_OCA/account_payment_partner/models/account_invoice.py", line 62, in create
return super(AccountInvoice, self).create(vals)
File "/usr/lib/python2.7/site-packages/odoo/addons/account/models/account_invoice.py", line 346, in create
invoice = super(AccountInvoice, self.with_context(mail_create_nolog=True)).create(vals)
File "/usr/lib/python2.7/site-packages/odoo/addons/mail/models/mail_thread.py", line 228, in create
thread = super(MailThread, self).create(values)
File "/usr/lib/python2.7/site-packages/odoo/models.py", line 3803, in create
vals = self._add_missing_default_values(vals)
File "/usr/lib/python2.7/site-packages/odoo/models.py", line 1635, in _add_missing_default_values
defaults = self.default_get(list(missing_defaults))
File "/usr/lib/python2.7/site-packages/odoo/addons/utm/models/utm.py", line 61, in default_get
values = super(UtmMixin, self).default_get(fields)
File "/usr/lib/python2.7/site-packages/odoo/models.py", line 1118, in default_get
defaults[name] = field.default(self)
File "/var/lib/odoo/addons/10.0/customized_invoice/models/invoice.py", line 52, in
style = fields.Many2one('report.template.settings', 'Invoice Style', help="Select Style to use when printing this invoice", default= lambda self: self.partner_id.style or self.env.user.company_id.default_style)
File "/usr/lib/python2.7/site-packages/odoo/fields.py", line 904, in get
record.ensure_one()
File "/usr/lib/python2.7/site-packages/odoo/models.py", line 4820, in ensure_one
raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: account.invoice(403, 402)
Someone can help me with this issue?
Thanks in advance!
in the def compute(self, value, date_ref=False):
there is an error in line 153 on
if not float_is_zero(amt, precision_rounding=prec):
if amt=0,6 the result is true instead of false .
it should-be
if not float_is_zero(amt, precision_rounding=prec, **2**): result.append((fields.Date.to_string(next_date), amt)) amount -= amt
because the float_is_zero need a value and precision_digits and precision_rounding float_is_zero(value, precision_digits=None, precision_rounding=None):
to work properly.
Marco
When merging two supplier invoices, where at least one invoice contains only some positions of a purchase order, an exception is occured:
File "/var/lib/odoo/addons/account-invoicing/account_invoice_merge_purchase/models/account_invoice.py", line 35, in do_merge
new_invoice_id][org_iline.id])
KeyError: 73
There are addons in there with dependencies on addons-vauxoo (cf. travis configuration).
Either the dependency must be ported to OCA, or thes addons must be removed from the repository.
Hello,
First I wanted to thank you for this brilliant module!
Unfortunately I've run into some problems, I think it's a bug because I tried different methods to get it done, and nothing worked.
So here is my problem, when I try to generate the invoice from the delivery I get this error:
File "/opt/odoo/addons/account_invoice_shipping_address/stock.py", line 32, in _get_invoice_vals
if picking and picking.partner_id:
AttributeError: 'unicode' object has no attribute 'partner_id'
If I generate the invoice from the SO, it work as it should be.
My problem is that I can't always create the invoice from the SO because I need the delivery note as source document on the invoice.
You should know that the address type for the delivery is “Shipping”, and it’s not a company, it’s a child of a company. The main company is a standard and regular one (it's the invoice address).
Thank you very much!
Kind regards,
George.
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-10.0
Disregard
Dear All,
After installing the module the total amount does not appear at header level in vendor invoice screen.
I'm working on version 10 and in version 9.0 this feature worked out perfectly.
Regards
thanks in advance
claudio candito
Hello, I need a custom use case from the module account_invoice_merge and I am currently asking myself if this case could be integrated into the community. Here it is:
Invoice 1 - to Asusteck Arthur Gomez
Invoice 2 - to Asusteck James Miller
With the current account_invoice_merge you can not merge those invoices because the partners are differents.
But if you take in consideration that after the merging effect we 'd like to have an invoice only for Asusteck company and not its contacts then the module can not provide the job.
Is there any way to do this with (mayebe) another community module? Otherwise I will implement it soon so just let me know if
Many thanks,
-jne
If a purchase order has several invoices attached to it, and you try to merge one (but not all) of those invoices, you will get a KeyError.
2017-06-14 06:52:58,021 2574 ERROR dermanord_11juni openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 544, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 581, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 317, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 314, in checked_call
return self.endpoint(*a, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 810, in call
return self.method(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 410, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 948, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 399, in old_api
result = method(recs, *args, **kwargs)
File "/usr/share/odooext-oca-account-invoicing/account_invoice_merge/wizard/invoice_merge.py", line 87, in merge_invoices
date_invoice=self.date_invoice)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 266, in wrapper
return new_api(self, *args, **kwargs)
File "/usr/share/odooext-oca-account-invoicing/account_invoice_merge_purchase/models/account_invoice.py", line 34, in do_merge
new_invoice_id][org_iline.id])
KeyError: 1403852
Problems started with a translation commit, so they are probably due to something outside this repo.
I just update module list in many of my Odoo 8 installations.
I click on the account_invoice_rounding module in the module list, without install it. And this error appears in the log :
2015-12-23 03:02:03,062 19463 INFO ? werkzeug: 127.0.0.1 - - [23/Dec/2015 03:02:03] "GET /base/static/src/css/description.css HTTP/1.0" 304 -
<string>:23: (WARNING/2) Duplicate explicit target name: "swedish rounding".
2015-12-23 03:02:03,119 19463 WARNING 111aaa openerp.addons.base.module.module: docutils' system message present: <system_message backrefs="id1" level="2" line="23" source="<string>" type="WARNING"><paragraph>Duplicate explicit target name: "swedish rounding".</paragraph></system_message>
Warning
2017-01-23 10:44:31,959 11296 WARNING odoo openerp.models: account.invoice.read() with unknown field '17'
2017-01-23 10:44:31,959 11296 WARNING odoo openerp.models: account.invoice.read() with unknown field '16'
2017-01-23 10:44:31,960 11296 WARNING odoo openerp.models: account.invoice.read() with unknown field '15'
2017-01-23 10:44:31,960 11296 WARNING odoo openerp.models: account.invoice.read() with unknown field '14'
account_invoice_merge/wizard/invoice_merge.py
@api.model
def _dirty_check(self):
...
invs = inv_obj.read(ids,
['account_id', 'state', 'type', 'company_id',
'partner_id', 'currency_id', 'journal_id'])
...
openerp/models.py
# new-style implementation of read()
@api.v8
def read(self, fields=None, load='_classic_read'):
Dears
When select inovice merge ...
tax no automatic update...
product no automatic group
It does not seem consistent with the behavior of most of the practice
In the last part of the do_merge function, the test on self.env['sale.order'] is always False as the object is void.
So, the link with sale order lines is always lost !
Dear All,
is it possible to have this feature in version 10 also.
Please help me whether this has been substituted with something else.
thanks in advance
claudio candito
In anglo saxon accounting when you invoice a reception (receipt) from stock, the account is put as the stock input account in the invoice line...if you change the fiscal position the account is changed to the expense account instead to remain to the stock one...I will prepare a patch for the supplier invoice to take the account already in the invoice line and to map it from fiscal position, if you agree...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.