Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • coopdevs/comunitats-energetiques/odoo-ce
1 result
Show changes
Commits on Source (9)
{
"name": "Energy Community",
"version": "16.0.0.1.6",
"version": "16.0.0.1.7",
"depends": [
"account",
"account_banking_mandate",
......
......@@ -17,6 +17,5 @@ from . import res_users_role
from . import product
from . import utm_source
from . import account_move
from . import account_banking_mandate
from . import mail_channel
from . import mail_message
from odoo import api, fields, models
class AccountBankingMandate(models.Model):
_inherit = "account.banking.mandate"
# _sql_constraints = [
# (
# "mandate_ref_company_uniq",
# "unique(unique_mandate_reference,company_id)",
# "A Mandate with the same reference already exists for this company!",
# )
# ]
@api.model_create_multi
def create(self, vals_list):
for vals in vals_list:
if (vals.get("unique_mandate_reference") or "/") == "/":
vals["unique_mandate_reference"] = (
self.env["ir.sequence"].next_by_code("account.banking.mandate")
or "New"
)
__import__("ipdb").set_trace()
return super().create(vals_list)
......@@ -26,7 +26,7 @@ class ResPartnerBank(models.Model):
allowed_company_ids = fields.Many2many(
comodel_name="res.company",
_compute="_compute_allowed_company_ids",
compute="_compute_allowed_company_ids",
store=False,
)
......
......@@ -12,7 +12,7 @@
# Check https://github.com/odoo/odoo/blob/14.0/odoo/addons/base/data/ir_module_category_data.xml
# for the full list
"category": "Cooperative management",
"version": "16.0.0.1.6",
"version": "16.0.0.1.7",
"license": "AGPL-3",
# any module necessary for this one to work correctly
"depends": [
......
......@@ -159,14 +159,6 @@ class SubscriptionRequest(models.Model):
else:
partner_vals = self.get_partner_vals()
partner = partner_obj.create(partner_vals)
# if self.iban:
# self.env["res.partner.bank"].create(
# {
# "partner_id": partner.id,
# "acc_number": self.iban,
# "company_id": self.company_id.id
# }
# )
return partner
def _find_or_create_representative(self):
......
......@@ -12,7 +12,7 @@
# Check https://github.com/odoo/odoo/blob/14.0/odoo/addons/base/data/ir_module_category_data.xml
# for the full list
"category": "Sales/CRM",
"version": "16.0.0.1.3",
"version": "16.0.0.1.4",
"license": "AGPL-3",
# any module necessary for this one to work correctly
"depends": [
......
......@@ -9,7 +9,7 @@
"author": "Coopdevs Treball SCCL & Som Energia SCCL",
"website": "https://coopdevs.org",
"category": "Customizations",
"version": "16.0.0.1.6",
"version": "16.0.0.1.7",
"license": "AGPL-3",
"depends": [
"base",
......