This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
payment_ids = [ | |
71728, | |
71727, | |
70960, | |
70902, | |
70901, | |
70900, | |
70899, | |
70898, | |
70897, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
account_moves_to_adjust = [ | |
"RADMIN/2022/04/0060-FAG", | |
"RADMIN/2022/04/0010-FAG", | |
"RADMIN/2022/04/0011-FAG", | |
"RADMIN/2022/04/0012-FAG", | |
"RADMIN/2022/04/0013-FAG", | |
"RADMIN/2022/04/0014-FAG", | |
"RADMIN/2024/01/0002-FAG", | |
"RADMIN/2022/04/0015-FAG", | |
"RADMIN/2022/04/0017-FAG", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
credit_obj = env["sbd.endorsement.credit"] | |
credit_to_change = {"2025-06-088810": 47165, "2025-06-088333": 139496.66,"ACAETUR-2023-11-0051-01":3770876.14} | |
for key, value in credit_to_change.items(): | |
credit = credit_obj.search([("name", "=", key)]) | |
credit.write({"actual_amount": value}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
credit_obj = env["sbd.endorsement.credit"] # type: ignore | |
endorsement_obj = env["sbd.guarantee.out"] # type: ignore | |
# change the related document of the credit to endorsement | |
credit_to_change_document = credit_obj.search([("name", "=", "1199-9-2023-BAC")]) | |
credit_to_change_document.write({"related_document": "endorsement"}) | |
# | |
credits_endorsement = { | |
'2025-06-089417': '0129-10-2021-BAC', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<data> | |
<xpath expr="//form[1]/sheet[1]/group[1]/group[2]/div[@name='date_planned_div']/field[@name='date_planned']" position="attributes"> | |
<attribute name="attrs">{}</attribute> | |
<attribute name="force_save">True</attribute> | |
</xpath> | |
<xpath expr="//div[@name='reminder']" position="after"> | |
<field name="x_studio_shipping_date" string="Fecha de embarque"/> | |
<field name="x_studio_customs_delivery_address_id" string="Dirección de entrega" attrs="{"invisible": [["incoterm_id","=",False]], "readonly": ["|","|",["state","=","purchase"],["state","=","done"],["state","=","cancel"]], "required": [["incoterm_id","!=",False]]}"/> | |
</xpath> | |
<xpath expr="//field[@name='fiscal_position_id']" position="after"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model : pms_reservation | |
period = fields.Integer(store=True,compute="_compute_period_reservation") | |
type_period = fields.Char(store=True,compute="_compute_period_reservation") | |
@api.depends("nights") | |
def _compute_period_reservation(self): | |
for res in self: | |
type_period = "" | |
if(res.nights < 7): | |
type_period = "day" |