Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[FIX] point_of_sale: default global discount #36665
you should also check that the company = company of the config or company_id is false on the product. more or less like in '_default_sale_journal' of pos config.
Why did you changed the behavior to use default instead of onchange? It means that the product is set even if your checkbox is not set, and percentage of discount is not changed eihter, and your branch is red because of that.
Also you are removing the reference to the image: 'product_product_49-image.jpg' It does not seems to be used anymore, probably you can remove the image too.