Giter Club home page Giter Club logo

account-invoicing's People

Contributors

alexis-via avatar anasuarez1 avatar cedric-pigeon avatar elbati avatar etobella avatar extrememicro avatar flotho avatar francesco-ooops avatar ivorra78 avatar jordibforgeflow avatar kittiu avatar kongrattapong avatar legalsylvain avatar marylla avatar mbcosta avatar miquelrforgeflow avatar mymage avatar oca-git-bot avatar oca-transbot avatar oca-travis avatar olgamarcocb avatar pedrobaeza avatar pedrocasi avatar primes2h avatar sbidoul avatar sirtakobi avatar sysadminmatmoz avatar tdu avatar weblate avatar yvesldff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

account-invoicing's Issues

Migration to version 11.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-11.0

Modules to migrate

Account invoice block

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

invoice block in Odoo 9.0 (account_invoice_blocking)

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

MULTIPLE VALUES FOR account.invoice.global_round_line_id: account.invoice.line

module: account_invoice_rounding
version: 8.0

Steps to reproduce

  • make a sale order with multiple lines having subtotal in decimals (eg. 656.35,585.25)
    -confirm the sale order with field Create Invoice field = on delivery order and create the invoice from delivery order

Current behavior
error raised
Expected behavior
as with only one sale line created

[8.0][acccount_invoice_merge_purchase] Error: when invoicing from various pickings and leaving one of them waiting

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.

account_invoice_validation_workflow v8 - Lost buttons

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.

[9.0][account_invoice_merge] after invoice merge false numbers appear on SO lines

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.

[RFC][account_invoice_line_discount_fixed_amount]

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.

Account Invoice Line Discount Fixed Amount

  • Introduces a 'Discount (Fixed amount)'
  • A user cannot enter both a 'Discount (%)' and 'Discount (Fixed amount)' (constraint).
  • The total invoice amount is computed according to whatever discount type was applied.
  • The total invoice tax amount is computed according to whatever discount type was applied.
  • The invoice form shows the 2 discount types.

Configuration

  • Go to 'Invoicing / Settings' and check the box "Use fixed amount discounts'. This will ensure that all employees have access to the new field by adding them to group 'Usability / Use fixed amount discounts'.

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

merge invoices do not work due to commit f333de21ce2878b40f2e5729d8c216c9d9303f07

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

Why to make a cash rounding if the payment is not in cash?

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?

AttributeError: 'tuple' object has no attribute 'keys' when merging two invoices

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'

I get this error when I uninstall the module and I go in

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'

Review of the onchange on fiscal position

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

Dont work

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: )>"

account_invoice_merge: Error on V8.0.2.0.0

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'

8.0 account_invoice_merge_purchase tests broken

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

[8.0] account_invoice_merge - SO paid checkbox do not work

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

[9.0] account_invoice_analytic_cogs

Analytic lines for the cost of goods sold (COGS)

This module creates the analytic lines of the cost of goods sold when the customer invoice/refund is validated.

Dependencies

  • account_accountant
  • stock

Configuration

In Accounting / Configuration / Settings

  • Enable Analytic accounting
  • Enable Analytic accounting for sales

In your company, check the anglo-saxon accounting box

In your product category, choose "Perpetual (automated)" as the inventory valuation

Usage

  • Create a customer invoice/refund
  • Add a line with an analytic account
  • Validate the invoice/refund

Expected results

Account move lines

account_move_line

Analytic move lines

analytic_lines

Analytic line of COGS

cogs_analytic_line

Migration to version 9.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-9.0

Modules to migrate

  • account_group_invoice_lines
  • account_invoice_check_total - By @ThomasBinsfeld - #162
  • account_invoice_customer_ref_unique
  • account_invoice_force_number
  • account_invoice_line_description
  • account_invoice_line_sort
  • account_invoice_merge - By @BT-hstoeckle - #209
  • account_invoice_merge_payment - By @cubells - #232
  • account_invoice_merge_purchase - By @cubells - #233
  • account_invoice_partner
  • account_invoice_period_usability
  • account_invoice_pricelist - By @sergio-teruel - #211
  • account_invoice_rounding
  • account_invoice_shipping_address - By @fshahy #135
  • account_invoice_template
  • account_invoice_uom
  • account_invoice_validation_workflow
  • account_invoice_supplier_ref_unique - By @ThomasBinsfeld - #161
  • account_invoice_zero_autopay
  • account_payment_term_extension by @jcoux - #141
  • invoice_fiscal_position_update > account_invoice_fiscal_position_update - By @sergio-teruel - #223
  • product_customer_code_invoice
  • sale_order_partial_invoice Not needed anymore as possible in core
  • stock_invoice_picking_incoterm
  • stock_picking_invoicing - By @flotho merged in one module in #140
  • stock_picking_invoicing_unified - By @flotho merged in one module in #140

account_invoice_supplier_ref_unique - Odoo Version 10

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

"purchase_stock_picking_return_invoicing" migration in version 10

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

[10.0] account_invoice_fiscal_position_update : Don't map tax on invoice creation

@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.

account_invoice_force_number

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.

[10.0] [account_invoice_merge] ERROR

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!

error on compute function

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

[8.0] Exception on merge of supplier invoice with partial delivery of PO

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

remove dependency on addons-vauxoo

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.

account_invoice_shipping_address Can't create invoice from delivery

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.

Migration to version 10.0

Todo

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-10.0

Modules to migrate

  • account_group_invoice_lines - By @alexis-via - #208
  • account_invoice_blocking - By @adrienpeiffer - #197
  • account_invoice_check_total - By @adrienpeiffer - #195
  • account_invoice_customer_ref_unique - By @aheficent - #257
  • account_invoice_force_number - By @tafaRU - #242
  • account_invoice_line_description - By @luismontalba - #274
  • account_invoice_line_sort
  • account_invoice_merge - By @lreficent - #238
  • account_invoice_merge_payment - By @benwillig - #264
  • account_invoice_merge_purchase - By @adrienpeiffer - #251
  • account_invoice_partner
  • account_invoice_period_usability
  • account_invoice_pricelist - By @rvalyi - #342
  • account_invoice_pricelist_sale - By @rvalyi - #343
  • account_invoice_refund_link - By @luismontalba - #254
  • account_invoice_refund_option - By @NeoPolus - #229 Not needed in v10
  • account_invoice_rounding - By @grindtildeath - #212
  • account_invoice_shipping_address - Feature included in core
  • account_invoice_supplier_ref_unique - By @adrienpeiffer - #192
  • account_invoice_supplierinfo_update - By @mourad-ehm - #252
  • account_invoice_supplierinfo_update_discount - By @legalsylvain - #468
  • account_invoice_template - By @jzahid - #250
  • account_invoice_uom
  • account_invoice_validation_workflow
  • account_invoice_zero_autopay
  • account_payment_term_extension - By @alexis-via - #193
  • invoice_fiscal_position_update > account_invoice_fiscal_position_update - By @alexis-via - #191
  • product_customer_code_invoice - By @angedras - #267
  • purchase_batch_invoicing - By @Montxu - #456
  • purchase_stock_picking_return_invoicing
  • sale_order_partial_invoice
  • sale_timesheet_invoice_description - By @pedrobaeza - #300
  • stock_invoice_picking_incoterm
  • stock_picking_invoicing

total amount invoice doesn't appear in version 10

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

Account_invoice_merge new features??

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

  • you agree to integrate it here
  • you have any fears about any side effects
  • you have a better idea to implent this use case...

Many thanks,

-jne

[8.0] account_invoice_merge_purchase KeyError when merging

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

8.0 travis build is red

Problems started with a translation commit, so they are probably due to something outside this repo.

Why do I get this error without install the module ????

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>

[8.0] Invoice merge validation v8

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'):

Account invoice merge module need fix

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

Invoice Fiscal Position Update doesn't work ok - Anglo Saxon Accounting

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...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.