diff --git a/MANIFEST.in b/MANIFEST.in index 2e0fcc62017..f2264ad41be 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -22,6 +22,7 @@ recursive-include odoo *.otf recursive-include odoo *.pdf recursive-include odoo *.png recursive-include odoo *.po +recursive-include odoo *.pot recursive-include odoo *.rml recursive-include odoo *.rng recursive-include odoo *.rst diff --git a/addons/account/models/account.py b/addons/account/models/account.py index f42268edd70..00bdabb7f9e 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -107,7 +107,7 @@ class AccountAccount(models.Model): @api.model def _search_new_account_code(self, company, digits, prefix): - for num in range(1, 100): + for num in range(1, 10000): new_code = str(prefix.ljust(digits - 1, '0')) + str(num) rec = self.search([('code', '=', new_code), ('company_id', '=', company.id)], limit=1) if not rec: diff --git a/addons/account/models/account_payment.py b/addons/account/models/account_payment.py index f4cb84a3531..3915b9f9c1f 100644 --- a/addons/account/models/account_payment.py +++ b/addons/account/models/account_payment.py @@ -661,7 +661,9 @@ class account_payment(models.Model): if any(len(record.invoice_ids) != 1 for record in self): # For multiple invoices, there is account.register.payments wizard raise UserError(_("This method should only be called to process a single invoice's payment.")) - return self.post() + res = self.post() + self.mapped('payment_transaction_id').filtered(lambda x: x.state == 'done' and not x.is_processed)._post_process_after_done() + return res def _create_payment_entry(self, amount): """ Create a journal entry corresponding to a payment, if the payment references invoice(s) they are reconciled. diff --git a/addons/account/static/src/xml/account_reconciliation.xml b/addons/account/static/src/xml/account_reconciliation.xml index c8cd06d258e..40ff944a632 100644 --- a/addons/account/static/src/xml/account_reconciliation.xml +++ b/addons/account/static/src/xml/account_reconciliation.xml @@ -58,7 +58,7 @@

-

+

diff --git a/addons/account/views/report_invoice.xml b/addons/account/views/report_invoice.xml index bd55957c7c1..c32413a4f1d 100644 --- a/addons/account/views/report_invoice.xml +++ b/addons/account/views/report_invoice.xml @@ -3,7 +3,7 @@